Debugging PHP7.4 with XDebug 2 and VsCode

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 191

  • @TheCodeholic
    @TheCodeholic  2 роки тому

    🔥🔥🔥 Check my full course "Build and Deploy Laravel E-commerce Website with Vue.js Admin Panel" at thecodeholic.com 🔥🔥🔥

  • @bilalshahzad8724
    @bilalshahzad8724 3 роки тому +14

    i am doing php development from last 5 years.. and i always use echo to check output of each line ...now man.. u made life easy for php devs.. thankss .

  • @AlanGCarvajal
    @AlanGCarvajal 3 роки тому +6

    oh man, so many years just finding the best way of logging data to get errors... and it turns out using the debugger was so much simpler. Thanks for the video!

  • @智慧蛇
    @智慧蛇 3 роки тому +34

    Thank you. The breakpoint just don't stop. The extension help says should put these lines in php.ini if the DLL file version is 3.x.x.
    xdebug.mode = debug
    xdebug.start_with_request = yes
    xdebug.client_port = 9000
    hope works for you guys.

    • @ahmaddeveloper1329
      @ahmaddeveloper1329 3 роки тому +3

      Thanks, man. At last, you helped me.
      I was here in the comment section for this reason only.
      Thankyou So much.

    • @martinsnarogs7530
      @martinsnarogs7530 3 роки тому +1

      And many thanks for me as well! Came to the comments just to find this

    • @77Rafah
      @77Rafah 3 роки тому +1

      God

    • @bkudrle
      @bkudrle 3 роки тому

      Yes, found this a key step also to have debug recognize the browser in Listen for Xdebug mode. Thanks so much.

    • @_Leo.Bonart_
      @_Leo.Bonart_ 2 роки тому +2

      Pay attention to the port. It should be the same as in launch.json file. In my case it was 9003, not 9000. And it was the problem in my case.

  • @davidramos2360
    @davidramos2360 3 роки тому +17

    0:48 intro ends
    1:10 Installation step by step (phpinfo, download)
    1:56 folders and files modifications for installing
    3:16 config ide
    3:45 first demonstration (breakpoint)
    4:37 listen for xdebug

  • @sosurim
    @sosurim 3 роки тому +5

    Bravo. Even though I know how to set this up, I watched your video because my method and explanation would be long, drawn out and boring. But yours is concise, easy and even entertaining. So a big thank you! And a big thumbs up!!

    • @TheCodeholic
      @TheCodeholic  3 роки тому +1

      Thanks a lot. Appreciate buddy.

    • @vooshmoozik6185
      @vooshmoozik6185 2 роки тому

      nice to see a person that acknowledges his faults instead of hiding them, that's mature and tells me alot about you :).... please don't change

  • @6542fahad
    @6542fahad 3 роки тому +1

    Wonder-full waited for this for a long time after shifting from C# to PHP

  • @kurcanu
    @kurcanu 3 роки тому +1

    The best xdebug presentation that money can buy.Great work.

  • @kiranugale88
    @kiranugale88 4 роки тому +4

    You really understand better what developer needs, you saved my time with this tool. thanks again.

  • @workingTchr
    @workingTchr 4 роки тому +2

    Thank you so much. Somehow I had an old launch.json in there. I kept installing and reinstalling phpdebug but not doing the the Run > Add Configuration step. Nice to be able to debug within VSCode!

  • @turtle_titan
    @turtle_titan 3 роки тому +6

    Hey, I just wanted to add, that because of this configuration it did not work, but I didn't find any hint on the whole web, that this should be set. Actually only by looking into the documantation on xdebug-platform, I found how to get it work. This ist what is to be set in php.ini:
    zend_extension=PATH_TO_PHP_XDEBUG.DLL
    xdebug.remote_enable=1
    xdebug.remote_autostart=1
    xdebug.mode=debug
    xdebug.remote_port=9003
    xdebug.start_with_request=yes
    And when configuring the launch.json in VSC, port should be adjusted to 9003 (instead of 9000, for the right port, look in phpinfo()).
    SW-Stack:
    Windows 10 x64 20H2
    VSC: 1.51.1
    XAMPP: 8.0.0
    XDebug: php_xdebug-3.0.1-8.0-vs16-x86_64.dll

  • @arjunshinde7
    @arjunshinde7 4 роки тому +3

    Thanks for making videos. You Explain every minute details precisely. I'm currently learning basic programming in Core PHP without using any framework. Love from India.

  • @onikiaanadolu
    @onikiaanadolu 2 роки тому

    Best php developer in youtube 🧨

  • @juststudying1019
    @juststudying1019 Рік тому

    Man you are amazing, thanks.
    Please make videos about Automation testing in Yii2 it will be a life saver, the yii2 documentation is just very hard.
    I have learnt a lot from you.

  • @shaheeng8034
    @shaheeng8034 Рік тому

    Simple and concise! Great work man! Thanks!

  • @ebrahim-s-ebrahim
    @ebrahim-s-ebrahim Рік тому +1

    man you are a king. thanks a lot.

  • @chungfeng4765
    @chungfeng4765 2 роки тому

    Wow, tNice tutorials opened my eyes to the beauty of soft soft. Your tutorial is as clear as the layout of the program.

  • @МихаилЗолотухин-ь9т

    Спасибо большое! Заработало)))

  • @chitwanawasthy393
    @chitwanawasthy393 3 роки тому

    Works like charm!

  • @oliveiraluiz2546
    @oliveiraluiz2546 2 роки тому

    Thank you,.!!!!!!!!!! You helped me a lot, I am watching you from Brazil.

  • @abdullahAboelkhair
    @abdullahAboelkhair 4 роки тому +5

    Thank you so much i spent the whole day searching for how to set up this xdebug shit

  • @prondubuisi
    @prondubuisi 2 роки тому +1

    Thanks for the explanation

  • @denchcity2779
    @denchcity2779 2 роки тому +1

    Thanks for this, much appreciated.

  • @quanghuybest2k2
    @quanghuybest2k2 2 роки тому +1

    thank you! this video very useful

  • @stephonking2847
    @stephonking2847 2 роки тому

    yours sir, worked for me, thanks for this video !

  • @rudeadyet1992
    @rudeadyet1992 2 роки тому

    thanks for this :) hoping to see one for dockerized app.

  • @bijianwu5124
    @bijianwu5124 2 роки тому

    thanks for it, you are a star!

  • @chrise202
    @chrise202 3 роки тому +19

    For xdebug 3.x+ instead add these to php.ini:
    xdebug.mode = debug
    xdebug.start_with_request = yes
    xdebug.client_port = 9000

    • @olifer-br
      @olifer-br 3 роки тому

      Working with "Launch currently open script", but not with "Listen for xDebug".
      Thx anyway.

    • @vladimir.rivera
      @vladimir.rivera 3 роки тому +1

      Thank you! this was driving me crazy but with this I could make it work. btw, I'm using Laragon

    • @baileycapuano8330
      @baileycapuano8330 3 роки тому +1

      Been stuck on this for a few hours; this fixed it. Thank you!!

    • @kelvinotieno4381
      @kelvinotieno4381 3 роки тому +1

      Thanks man...Worked for me.

    • @rennjaysoterio2543
      @rennjaysoterio2543 3 роки тому

      This one saved me. Thank you creator and Chris E!

  •  5 місяців тому

    Thank you for the great explanation!
    Can I ask what VsCode theme and font are you using?

  • @derGauner
    @derGauner Рік тому +1

    Thanks!

  • @paktvonline2349
    @paktvonline2349 3 роки тому

    Thank you so much. I follow the steps of your tutorial and it's working for me. Thanks Again

  • @fernandoarnaldovilanculo8286
    @fernandoarnaldovilanculo8286 2 роки тому +1

    Thank you

  • @shavendragoesoft3845
    @shavendragoesoft3845 3 роки тому

    than you ..

  • @abdulbadisabir6653
    @abdulbadisabir6653 2 роки тому

    If your Launch currently open script configuration is not stopping at the breakpoints, it is because your cli is not using the xampp php.ini, rather your computer's php.ini (the php.ini file used when you run php from the terminal, you can run php -a then phpinfo() from terminal, then check config file by searching for php.ini to check path of which file is being used )

  • @abdullah_aw6171
    @abdullah_aw6171 3 роки тому

    thank you i learn now and benefited from this video

  • @chistowick
    @chistowick 4 роки тому +1

    Thank you very much! Very cool, short and very clear. I will wait for new videos on your channel =)

    • @TheCodeholic
      @TheCodeholic  4 роки тому +1

      Thank you. I am working on something interesting which will be released in next week

  • @kennethlopez6411
    @kennethlopez6411 2 роки тому

    soft is rather complex.. sotNice tutorialngs more than they should be. But you've made a great job explaining it!

  • @Techstolk
    @Techstolk 4 роки тому +1

    bang on! thanks for the video!

  • @petersonfreitas2061
    @petersonfreitas2061 3 роки тому

    Thank you. It works very well.

  • @beps4440
    @beps4440 3 роки тому

    So clear! Thank you mate!

  • @llBestBoyll
    @llBestBoyll 2 роки тому

    Nice video 👏🏼👏🏼🔥

  • @ego_boy4686
    @ego_boy4686 2 роки тому +2

    Thanks for amazing content. Great explanation is just like I needed. Time for less headaches :)

  • @47Lancelot
    @47Lancelot 4 роки тому +1

    this is very handy, thank you very much!

  • @sunhsiang6644
    @sunhsiang6644 4 роки тому +1

    Thank you sir, it really works.

  • @adeline8191
    @adeline8191 3 роки тому

    very clear explications, thank.

  • @kiran-gj4bd
    @kiran-gj4bd 2 роки тому

    Thanks man!

  • @brandonking3665
    @brandonking3665 4 роки тому +1

    Great video. Thanks!

  • @HashimAziz1
    @HashimAziz1 2 роки тому +1

    If your version of XDebug is 3.0 or later, as it probably will be as of the time of this comment, replace the lines at 2:50 with the following:
    zend_extension="C:\XAMPP\php\ext\php_xdebug.dll"
    xdebug.mode = debug
    xdebug.start_with_request = yes

  • @ankushsharma4041
    @ankushsharma4041 4 роки тому +1

    Thank You ! It helped

  • @edurcdev
    @edurcdev 4 роки тому +1

    What theme do you use in your vscode work style?

  • @one-zero-dev
    @one-zero-dev 2 роки тому

    Great! Thx!

  • @BeeRealLikeMe
    @BeeRealLikeMe 3 роки тому

    Thank you. Subscribed :D

  • @duanejohnson5269
    @duanejohnson5269 4 роки тому +1

    Great Job !

  • @gilenomascarenhas6693
    @gilenomascarenhas6693 4 роки тому

    What a amazing video! Thank you, sir! Helped me a lot.

  • @Zqndq
    @Zqndq 2 роки тому

    Zura janai Katsura da !

  • @arindamsarkar6522
    @arindamsarkar6522 3 роки тому +1

    exceptional :)

  • @RolandsZeltins
    @RolandsZeltins 4 роки тому

    Thank for video, can you showcase how to setup xdebug in WSL2 using laradock or docker.
    Cannot figure it out.

  • @davidhunt4291
    @davidhunt4291 4 роки тому

    Man you type fast, Man I'm so impressed with how fast you type and you talk real fast too talking fast and typing fast are the the impressive things you do. The only impressive things you do.

    • @ahmaddeveloper1329
      @ahmaddeveloper1329 3 роки тому

      He had recorded the video earlier then edited it and then he did voice-over so that it looks real You can identify this by the speed of the blinking cursor.

  • @Николай-д9э1ш
    @Николай-д9э1ш 4 роки тому

    Thank you!

  • @muniralmeslaty9602
    @muniralmeslaty9602 2 роки тому

    Thanks man for this videos
    but Listen for xdebug isn't working for me
    when i refresh the page
    with out make any error

  • @anilc2779
    @anilc2779 3 роки тому +1

    How to debug on vs code and php laravel app in a docker?

  • @MrDowlut
    @MrDowlut 2 роки тому

    Hi. Very clear and precise. However, the debugger does not stop at my codes, though I tried the steps explain. The very first debug, Launch currently open script, runs without stopping at the break point. Any advice please. Thank you

    • @TheCodeholic
      @TheCodeholic  2 роки тому

      Maybe you use xdebug 3.
      Check my other video (uploaded about 6-7 weeks ago) which is using xdebug 3.

    • @MrDowlut
      @MrDowlut 2 роки тому

      @@TheCodeholic Hi. Yes using xdebug 3. Pleaase share new link. That will help
      Thank you

    • @MrDowlut
      @MrDowlut 2 роки тому

      Hello again. I'm using PHP 7.4 with xdebug 3. Should i rather downgrade to xdebug 2, or PHP 7.4 and xdebug 3 will work smoothly?

    • @TheCodeholic
      @TheCodeholic  2 роки тому +1

      I think you should update to PHP8.1

  • @nemnoton
    @nemnoton 4 роки тому

    Great video. There is a thing with wordpress though, everytime I put a breakpoint somewhere it stops at that position or somewhere neraby with an exception for instance " Call to undefined function add_action()" , but there is no error when I load the page normally. Maybe it is not aware of the wordpress system or something?

    • @TheCodeholic
      @TheCodeholic  4 роки тому

      It does not care whether it is wordpress or magento. It should work. Please check if it really works without debug

    • @nemnoton
      @nemnoton 4 роки тому

      @@TheCodeholic Yes it loads with no problem when not debugging.
      I tried another project with laravel, and put a breakpoint in a service provider. Then I get:
      "Class 'Illuminate\Support\ServiceProvider' not found".
      If I reload the page there is a different error: "Symfony\Component\HttpKernel\Exception\NotFoundHttpException:".
      I use a virtual domain in local development, I don't know if that's related to the issue..

    • @nemnoton
      @nemnoton 4 роки тому

      @@TheCodeholic Maybe it's because I "run currently open script" and then it runs only that script in isolation.
      I can check the manual I guess.
      - - - - -
      edit: now it works, I should just use "Listen for Xdebug" and run through browser!

    • @TheCodeholic
      @TheCodeholic  4 роки тому

      Exactly.
      Yiu have to debug in browser

  • @rizaanjappie
    @rizaanjappie 3 роки тому +1

    How do u configure debugging on a Mac

  • @b4rt1j1
    @b4rt1j1 2 роки тому

    Hi, when im using launch currently open script and i change URL to see how different routes in my application work (router based on url params) it gives me always the default routing. Do I need to somehow link the URL with the folder being debugged? And another thing Listen for Xdebug is not working at all even after refreshing the page no lines highlited only the bar with pause, restart and stop button.
    Thanks for any answers

  • @ماجدنبيل-ز8م
    @ماجدنبيل-ز8م 3 роки тому +2

    Please could you help me, I do all steps in video but xdebug not work in vs code with php

    • @willinton06
      @willinton06 3 роки тому

      emphasis on shit, I really hate php

    • @ahmaddeveloper1329
      @ahmaddeveloper1329 3 роки тому

      The breakpoint just don't stop. The extension help says should put these lines in php.ini if the DLL file version is 3.x.x.
      xdebug.mode = debug
      xdebug.start_with_request = yes
      xdebug.client_port = 9000

    • @magednabil587
      @magednabil587 3 роки тому

      @@ahmaddeveloper1329 not work with me

  • @eugenbvro
    @eugenbvro 4 роки тому

    Hi, Is the process the same if I have a project in a different location (not default /xampp/htdocs)? Any extra configuration needed?

    • @TheCodeholic
      @TheCodeholic  4 роки тому

      If you are using xampp you need to have project under htdocs folder.
      However you might have xampp installed on different location than c:/xampp. In this case it does not matter.

  • @ezogrande2741
    @ezogrande2741 3 роки тому

    I done the same thing`s as you and i can`t debug my code.
    Variables are not displayed and the breakpoint used is not showing. Even my launch.json file displays 2 problems : " Matches multiple schemas when only one must validate."

  • @ashique12009
    @ashique12009 4 роки тому

    Good but why in my break point is not stopping in $person = new Person('Ashique'); this line?
    It completes the all lines and echo the output to Debug console :(
    Could you explain?
    Thanks

    • @ashique12009
      @ashique12009 4 роки тому

      @@TyrboCreed i have solved the issue.
      Just replaced then old dll file to new dll file. I think no need to download new xdebug.dll file if you use xampp then xampp comes with a php_xdebug.dll.

  • @tanphatnguyen9047
    @tanphatnguyen9047 2 роки тому

    what we have in person.php ?

  • @simplisageimpct6729
    @simplisageimpct6729 3 роки тому

    1:08 zura janai katsura da!

  • @dibbyo456
    @dibbyo456 3 роки тому +1

    Hello. Xdebug 3 is out, a lot things has been changed. Can you please publish a new video?

    • @TheCodeholic
      @TheCodeholic  3 роки тому +1

      I think I will do, just I am not sure exactly when

  • @shaikhanuman8012
    @shaikhanuman8012 3 роки тому

    hi sir ,can you make video on remove xdebug file ?

  • @dwilliams1888
    @dwilliams1888 3 роки тому

    Debug PHP is no longer in the Extensions in Visual Studio. Any thoughts?

    • @adesanoyesamson668
      @adesanoyesamson668 3 роки тому

      it is called PHP Debug . It is still in the extension i still installed it

  • @TheWaqaspuri
    @TheWaqaspuri 3 роки тому

    it opens another file in atom . what does it means if the debugger is in working conditions

  • @Nastwig
    @Nastwig 2 роки тому

    Hey, Can someone help me with an issue ? I can debug php files in /public folder but when i want to debug (open script) my controllers (src/controller) i have an error: "HP Fatal error: Uncaught Error: Class "Symfony\Bundle\FrameworkBundle\Controller\AbstractController" not found in C:\Desktop\workplace\test\src\Controller\TestController.php". My controller extends AbstractController and I have it in vendor/symfony/framework-bundle/controller... Any idea ?

  • @krishnashakya2858
    @krishnashakya2858 4 роки тому +2

    receive this error:
    If anyone receives Server error: Error: spawn php ENOENT then just install PHP Server
    plugin..might be helpful for someone :)

  • @lonthroop
    @lonthroop 4 роки тому

    Did everything you showed with no problem. Started with Launch open script. Nothing. The debugger icon shows up, and the controls the step controls are disabled. If I close the debugger the debug icon goes away and will not appear again unless I restart VSC. Not sure why this is happening.

    • @RYMANN_
      @RYMANN_ 4 роки тому

      same here....

    • @ahmaddeveloper1329
      @ahmaddeveloper1329 3 роки тому

      3:49 follow carefully everything must be sorted out.

  • @DarkKnight-ep9vq
    @DarkKnight-ep9vq 3 роки тому +1

    have problem, don`t work with php 8 (
    Error: listen eaddrinuse address already in use:::9003

  • @LuisCarlos-pm6mi
    @LuisCarlos-pm6mi 3 роки тому +2

    Doesn't work. My file is executed and all breakpoints are ignored.

    • @HVSharma
      @HVSharma 3 роки тому

      Remove the ones shown in this video if u using v3

    • @夜と朝
      @夜と朝 2 роки тому

      Lol

  • @Bunjeyman
    @Bunjeyman 2 роки тому

    Coming to this video in Oct 2022, I wonder if there is a new step that is needed here. I followed all steps exactly (twice) and at the 4:02 timestamp, my VS Code just runs the PHP file and outputs the echo to the Debug Console without stopping on the breakpoint. Does anyone know if there's another missing step now?

    • @TheCodeholic
      @TheCodeholic  2 роки тому +1

      Please check my recent video about debugging that uses xdebug3. Your problems should be fixed there.

    • @Bunjeyman
      @Bunjeyman 2 роки тому

      @@TheCodeholic Ah, very good yes! That worked thank you!

  • @دارالموعظة
    @دارالموعظة 3 роки тому +1

    I followed the same steps but doesn't work, some help please!!

    • @TheCodeholic
      @TheCodeholic  3 роки тому

      What exact error do you get? Can you provide screenshot?

  • @countalucard1347
    @countalucard1347 4 роки тому

    Hi,
    I've reinstalled everything ( xampp php vscode etc )
    Still getting this error
    "Error: spawn php ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:81:21) {
    errno: 'ENOENT',
    code: 'ENOENT',
    syscall: 'spawn php',
    path: 'php',
    spawnargs: [ 'c:\\xampp\\htdocs\\work\\test.php' ]
    }"
    Any idea? Thanks!!

    • @TheCodeholic
      @TheCodeholic  4 роки тому

      Where do you get this error? After what action?

    • @countalucard1347
      @countalucard1347 4 роки тому

      @@TheCodeholic asfter installing php debug and running the 'launch currently'

  • @dlist6132
    @dlist6132 2 роки тому

    what happened to me? I just keep having this notice
    PHP executable not found. Install PHP and add it to your PATH or
    set the php.debug.executablePath setting from vscode

    • @evilgaming7870
      @evilgaming7870 2 роки тому

      Had the same problem. This video help me fix it ua-cam.com/video/NAvMN2tqBZM/v-deo.html

  • @marwahgalmash392
    @marwahgalmash392 3 роки тому

    why i don't have php.ini?

  • @anhtram4181
    @anhtram4181 3 роки тому

    Why??? I can't download the file xdebug

  • @mohsinkhanshuvo5883
    @mohsinkhanshuvo5883 3 роки тому

    Can anyone help me with how to adjust it in Linux and docker?

    • @TheCodeholic
      @TheCodeholic  3 роки тому

      Unfortunately I have not done it.
      Check this link. it might help.
      matthewsetter.com/setup-step-debugging-php-xdebug3-docker/

  • @naresh2232463
    @naresh2232463 4 роки тому

    What about pho storm ?

    • @TheCodeholic
      @TheCodeholic  4 роки тому

      I already have video on PHPStorm.

    • @arjunshinde7
      @arjunshinde7 4 роки тому

      Have you paid for using php storm, because I can't afford it due to its pricing so I mostly use VSCode editor for my daily practice.

    • @dibbyo456
      @dibbyo456 4 роки тому

      @@arjunshinde7 VSCode is sufficient in 95% cases, PHP Storm is for those who are full stack dev working for company.

  • @masoomsanadi
    @masoomsanadi Рік тому +1

    any one who is here with latest xampp (PHP 8) + xcode (3),
    ---
    this is not the video for u.
    ---
    this same author has made another vid
    ua-cam.com/video/HrQWtbxY1Hs/v-deo.html

  • @edsonrodsilva
    @edsonrodsilva 4 роки тому

    How to config into mac?

    • @TheCodeholic
      @TheCodeholic  4 роки тому

      I believe the way will be similar. You just need to edit php.ini file.

    • @brandonking3665
      @brandonking3665 4 роки тому

      The XDebug wizard featured in the video should give you a precise set of constructions configured for your environment.

  • @TheSadMan899
    @TheSadMan899 4 роки тому

    i cant understand no matter how many times i watch this.
    can someone please link me a more in-depth tutorial of xdebug?
    what does a breakpoint do?
    can u debug without setting a breakpoint?
    what does this debug do?

    • @TheCodeholic
      @TheCodeholic  4 роки тому

      Watch some videos on YT about what is debugging in general and then everything will become clear

  • @shaileshchotoe
    @shaileshchotoe 4 роки тому

    when i click the play button nothing happend

    • @LuisCarlos-pm6mi
      @LuisCarlos-pm6mi 3 роки тому

      Same with me. When I click button, the script is executed and all breakpoints are ignored.

  • @avenirdata406
    @avenirdata406 3 роки тому +1

    Hello, I've followed every steps of your tutorial, but when I launch debuging in currently open file, it runs trough every breakpoint without stoping and print the result in the debug console.
    I also tried "listen for Xedbug" but it doesnt do anything at all
    I've installed Xamp in c:/Xamp but I dont understand what's happening right now.
    Could it be port that are already in use ?
    I've tried tons of things but I am kinda lost right now

  • @ioavcont12
    @ioavcont12 2 роки тому

    to go hahahaha

  • @PabloPazosGutierrez
    @PabloPazosGutierrez 3 роки тому

    $ php -i to get the phpinfo without writing code.

  • @vladeb1104
    @vladeb1104 3 роки тому

    doesn't work in 2021

    • @TheCodeholic
      @TheCodeholic  3 роки тому

      The problem might be in XDebug version.

    • @ahmaddeveloper1329
      @ahmaddeveloper1329 3 роки тому

      The breakpoint just don't stop. The extension help says should put these lines in php.ini if the DLL file version is 3.x.x.
      xdebug.mode = debug
      xdebug.start_with_request = yes
      xdebug.client_port = 9000

    • @vladeb1104
      @vladeb1104 3 роки тому +2

      @@ahmaddeveloper1329 v3.0 : "version": "0.2.0",
      "configurations": [
      {
      "name": "Listen for XDebug",
      "type": "php",
      "request": "launch",
      "port": 9000
      },
      {
      "type": "php",
      "request": "launch",
      "name": "Run using local PHP Interpreter",
      "program": "${file}",
      "runtimeExecutable": "C:\\xampp\\php\\php.exe"
      }
      ],
      } this is for json. and this is for php.ini: [XDebug]
      zend_extension = "C:\xampp\php\ext\php_xdebug-3.0.2-8.0-vs16-x86_64.dll"
      xdebug.mode = debug
      xdebug.start_with_request = yes
      xdebug.client_port = 9000
      xdebug.client_host = "127.0.0.1"
      xdebug.log = "C:\xampp\tmp\xdebug\xdebug.log"
      xdebug.idekey = VSCODE

    • @hhntpp
      @hhntpp 3 роки тому

      @@vladeb1104 thanks a lot, it works for me

  • @JustinEganCG
    @JustinEganCG 3 роки тому

    followed all the instructions exactly. didn't work at all

    • @TheCodeholic
      @TheCodeholic  3 роки тому

      Which PHP and Xdebug versions do you have?
      Do you get any error?

    • @JustinEganCG
      @JustinEganCG 3 роки тому

      @@TheCodeholic figured it out. mine wasn't enabled OOB had to do more to my PHP ini file

  • @taniax8944
    @taniax8944 2 роки тому

    THIS SHIT NOT WORKING
    I'm not talking about your tutorial but xdebug

  • @user-ug9nn
    @user-ug9nn 2 роки тому

    let's dislike it - you talk about php debugging, I think you address this tutorial for a new php developer, just the code is nor for a new php developer.. so useless guide... I don't understand anything as I have never done a code in oop mode ...

    • @TheCodeholic
      @TheCodeholic  2 роки тому

      Thank you for your feedback.
      I will consider that for my next video On debugging.
      I plan to redo this video and simlify that.
      P.S.
      It does not matter if you do debugging on functional way or OOP way. debugging is the process to find out bugs in your code.
      And it also does not matter what code the project contains.
      The only requirement of the video is to know what is debugging in general.
      But as I said I will consider your feedback

    • @evilgaming7870
      @evilgaming7870 2 роки тому

      its not about the code but the ability to debug via xDebug and VS Code, as it says in the title

  • @rumanaruma3952
    @rumanaruma3952 9 місяців тому

    thank you