Debugging PHP7.4 with XDebug 2 and VsCode

  Рет қаралды 182,016

The Codeholic

The Codeholic

4 жыл бұрын

🔥🔥🔥 Check my full course "Build and Deploy Laravel E-commerce Website with Vue.js Admin Panel" at thecodeholic.com 🔥🔥🔥
Debugging is really important in any language. VSCode is an excellent editor.
I decided to see how debugging works in VSCode on PHP language. And it turns out to be very good.
In this video I will install XDebug extension in Xampp installation, enable debugging using VSCode and debug PHP applications.
VScode supports debugging of both types of applications. Using browser and using terminal.
We will see debugging steps. We will get familiar with debugging interface of VSCode.
Then we will debug KZfaq Clone application written in Yii2 Framework.
Checkout my other videos:
Debugging using XDebug and PHPStorm on Windows - • Debugging with Xdebug ...
Debugging using XDebug and PHPStorm on Linux - • Debugging PHP on Linux...
PHPStorm Tips and Tricks - • 7 Essential PhpStorm t...
If you really love my content and want to support the channel:
👉 My Patreon: (For monthly donation)
/ thecodeholic
🍺 Buy me Beer: (For one time donation)
www.buymeacoffee.com/thecodeh...
Check my Github:
github.com/thecodeholic
🖱️Follow me on social media:🖱️
/ thecodeholic
/ thecodeholic
/ thecodeholic

Пікірлер: 191
@TheCodeholic
@TheCodeholic Жыл бұрын
🔥🔥🔥 Check my full course "Build and Deploy Laravel E-commerce Website with Vue.js Admin Panel" at thecodeholic.com 🔥🔥🔥
@AlanGCarvajal
@AlanGCarvajal 3 жыл бұрын
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!
@kiranugale88
@kiranugale88 3 жыл бұрын
You really understand better what developer needs, you saved my time with this tool. thanks again.
@bilalshahzad8724
@bilalshahzad8724 3 жыл бұрын
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 .
@davidramos2360
@davidramos2360 3 жыл бұрын
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
@user-rx8xf5pw7l
@user-rx8xf5pw7l 3 жыл бұрын
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 жыл бұрын
Thanks, man. At last, you helped me. I was here in the comment section for this reason only. Thankyou So much.
@martinsnarogs7530
@martinsnarogs7530 3 жыл бұрын
And many thanks for me as well! Came to the comments just to find this
@77Rafah
@77Rafah 3 жыл бұрын
God
@bkudrle
@bkudrle 2 жыл бұрын
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 жыл бұрын
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.
@kurcanu
@kurcanu 3 жыл бұрын
The best xdebug presentation that money can buy.Great work.
@sosurim
@sosurim 3 жыл бұрын
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 жыл бұрын
Thanks a lot. Appreciate buddy.
@vooshmoozik6185
@vooshmoozik6185 Жыл бұрын
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
@shaheeng8034
@shaheeng8034 10 ай бұрын
Simple and concise! Great work man! Thanks!
@gilenomascarenhas6693
@gilenomascarenhas6693 3 жыл бұрын
What a amazing video! Thank you, sir! Helped me a lot.
@47Lancelot
@47Lancelot 3 жыл бұрын
this is very handy, thank you very much!
@6542fahad
@6542fahad 2 жыл бұрын
Wonder-full waited for this for a long time after shifting from C# to PHP
@chistowick
@chistowick 4 жыл бұрын
Thank you very much! Very cool, short and very clear. I will wait for new videos on your channel =)
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Thank you. I am working on something interesting which will be released in next week
@beps4440
@beps4440 3 жыл бұрын
So clear! Thank you mate!
@TheCodeholic
@TheCodeholic 3 жыл бұрын
Glad it helped!
@workingTchr
@workingTchr 4 жыл бұрын
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!
@Techstolk
@Techstolk 3 жыл бұрын
bang on! thanks for the video!
@denchcity2779
@denchcity2779 2 жыл бұрын
Thanks for this, much appreciated.
@ego_boy4686
@ego_boy4686 2 жыл бұрын
Thanks for amazing content. Great explanation is just like I needed. Time for less headaches :)
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Thanks a lot
@ebrahim-s-ebrahim
@ebrahim-s-ebrahim Жыл бұрын
man you are a king. thanks a lot.
@chitwanawasthy393
@chitwanawasthy393 2 жыл бұрын
Works like charm!
@paktvonline2349
@paktvonline2349 2 жыл бұрын
Thank you so much. I follow the steps of your tutorial and it's working for me. Thanks Again
@brandonking3665
@brandonking3665 3 жыл бұрын
Great video. Thanks!
@sunhsiang6644
@sunhsiang6644 3 жыл бұрын
Thank you sir, it really works.
@petersonfreitas2061
@petersonfreitas2061 3 жыл бұрын
Thank you. It works very well.
@abdullah_aw6171
@abdullah_aw6171 2 жыл бұрын
thank you i learn now and benefited from this video
@user-uf4qb2zd5g
@user-uf4qb2zd5g Жыл бұрын
Спасибо большое! Заработало)))
@duanejohnson5269
@duanejohnson5269 3 жыл бұрын
Great Job !
@adeline8191
@adeline8191 2 жыл бұрын
very clear explications, thank.
@ankushsharma4041
@ankushsharma4041 3 жыл бұрын
Thank You ! It helped
@stephonking2847
@stephonking2847 2 жыл бұрын
yours sir, worked for me, thanks for this video !
@arindamsarkar6522
@arindamsarkar6522 3 жыл бұрын
exceptional :)
@arjunshinde7
@arjunshinde7 4 жыл бұрын
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.
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Thank you
@rudeadyet1992
@rudeadyet1992 2 жыл бұрын
thanks for this :) hoping to see one for dockerized app.
@oliveiraluiz2546
@oliveiraluiz2546 2 жыл бұрын
Thank you,.!!!!!!!!!! You helped me a lot, I am watching you from Brazil.
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Glad to hear that!
@bijianwu5124
@bijianwu5124 Жыл бұрын
thanks for it, you are a star!
@TheCodeholic
@TheCodeholic Жыл бұрын
Wow, thanks!
@quanghuybest2k2
@quanghuybest2k2 2 жыл бұрын
thank you! this video very useful
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Welcome
@abdullahAboelkhair
@abdullahAboelkhair 4 жыл бұрын
Thank you so much i spent the whole day searching for how to set up this xdebug shit
@abdullahAboelkhair
@abdullahAboelkhair 2 жыл бұрын
back a year later and still many thanks😅
@BeeRealLikeMe
@BeeRealLikeMe 2 жыл бұрын
Thank you. Subscribed :D
@prondubuisi
@prondubuisi Жыл бұрын
Thanks for the explanation
@TheCodeholic
@TheCodeholic Жыл бұрын
Welcome
@onikiaanadolu
@onikiaanadolu 2 жыл бұрын
Best php developer in youtube 🧨
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Huge thanks. Appreciate!!
@derGauner
@derGauner Жыл бұрын
Thanks!
@turtle_titan
@turtle_titan 3 жыл бұрын
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
@infomashup7575
@infomashup7575 2 жыл бұрын
Great help, thanks!
@plantlover886
@plantlover886 14 күн бұрын
THANK YOU very much.
@juststudying1019
@juststudying1019 9 ай бұрын
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.
@user-dj4cc1wp6r
@user-dj4cc1wp6r 3 жыл бұрын
Thank you!
@TheCodeholic
@TheCodeholic 3 жыл бұрын
You're welcome!
@fernandoarnaldovilanculo8286
@fernandoarnaldovilanculo8286 2 жыл бұрын
Thank you
@kiran-gj4bd
@kiran-gj4bd Жыл бұрын
Thanks man!
@TheCodeholic
@TheCodeholic Жыл бұрын
Welcome
@chungfeng4765
@chungfeng4765 Жыл бұрын
Wow, tNice tutorials opened my eyes to the beauty of soft soft. Your tutorial is as clear as the layout of the program.
@shavendragoesoft3845
@shavendragoesoft3845 2 жыл бұрын
than you ..
@one-zero-dev
@one-zero-dev Жыл бұрын
Great! Thx!
@TheCodeholic
@TheCodeholic Жыл бұрын
Welcome
@llBestBoyll
@llBestBoyll 2 жыл бұрын
Nice video 👏🏼👏🏼🔥
@rumanaruma3952
@rumanaruma3952 4 ай бұрын
thank you
@edurcdev
@edurcdev 3 жыл бұрын
What theme do you use in your vscode work style?
18 күн бұрын
Thank you for the great explanation! Can I ask what VsCode theme and font are you using?
@RolandsZeltins
@RolandsZeltins 3 жыл бұрын
Thank for video, can you showcase how to setup xdebug in WSL2 using laradock or docker. Cannot figure it out.
@chrise202
@chrise202 3 жыл бұрын
For xdebug 3.x+ instead add these to php.ini: xdebug.mode = debug xdebug.start_with_request = yes xdebug.client_port = 9000
@alexandreferreira5477
@alexandreferreira5477 3 жыл бұрын
Working with "Launch currently open script", but not with "Listen for xDebug". Thx anyway.
@vladimir.rivera
@vladimir.rivera 3 жыл бұрын
Thank you! this was driving me crazy but with this I could make it work. btw, I'm using Laragon
@baileycapuano8330
@baileycapuano8330 3 жыл бұрын
Been stuck on this for a few hours; this fixed it. Thank you!!
@kelvinotieno4381
@kelvinotieno4381 3 жыл бұрын
Thanks man...Worked for me.
@rennjaysoterio2543
@rennjaysoterio2543 3 жыл бұрын
This one saved me. Thank you creator and Chris E!
@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 )
@Zqndq
@Zqndq 2 жыл бұрын
Zura janai Katsura da !
@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
@eugenbvro
@eugenbvro 3 жыл бұрын
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 3 жыл бұрын
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.
@rizaanjappie
@rizaanjappie 3 жыл бұрын
How do u configure debugging on a Mac
@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
@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."
@Nastwig
@Nastwig Жыл бұрын
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 ?
@anilc2779
@anilc2779 3 жыл бұрын
How to debug on vs code and php laravel app in a docker?
@TheWaqaspuri
@TheWaqaspuri 2 жыл бұрын
it opens another file in atom . what does it means if the debugger is in working conditions
@HashimAziz1
@HashimAziz1 2 жыл бұрын
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
@gabrielbiacchi6169
@gabrielbiacchi6169 Жыл бұрын
Thank u
@tanphatnguyen9047
@tanphatnguyen9047 2 жыл бұрын
what we have in person.php ?
@nemnoton
@nemnoton 3 жыл бұрын
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 3 жыл бұрын
It does not care whether it is wordpress or magento. It should work. Please check if it really works without debug
@nemnoton
@nemnoton 3 жыл бұрын
@@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 3 жыл бұрын
@@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 3 жыл бұрын
Exactly. Yiu have to debug in browser
@kennethlopez6411
@kennethlopez6411 Жыл бұрын
soft is rather complex.. sotNice tutorialngs more than they should be. But you've made a great job explaining it!
@TheCodeholic
@TheCodeholic Жыл бұрын
Glad it was helpful!
@ashique12009
@ashique12009 3 жыл бұрын
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 3 жыл бұрын
@@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.
@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
@Bunjeyman
@Bunjeyman Жыл бұрын
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 Жыл бұрын
Please check my recent video about debugging that uses xdebug3. Your problems should be fixed there.
@Bunjeyman
@Bunjeyman Жыл бұрын
@@TheCodeholic Ah, very good yes! That worked thank you!
@lonthroop
@lonthroop 3 жыл бұрын
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_ 3 жыл бұрын
same here....
@ahmaddeveloper1329
@ahmaddeveloper1329 3 жыл бұрын
3:49 follow carefully everything must be sorted out.
@MrDowlut
@MrDowlut Жыл бұрын
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 Жыл бұрын
Maybe you use xdebug 3. Check my other video (uploaded about 6-7 weeks ago) which is using xdebug 3.
@MrDowlut
@MrDowlut Жыл бұрын
@@TheCodeholic Hi. Yes using xdebug 3. Pleaase share new link. That will help Thank you
@MrDowlut
@MrDowlut Жыл бұрын
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 Жыл бұрын
I think you should update to PHP8.1
@simplisageimpct6729
@simplisageimpct6729 2 жыл бұрын
1:08 zura janai katsura da!
@marwahgalmash392
@marwahgalmash392 3 жыл бұрын
why i don't have php.ini?
@user-kv2pu8rk2i
@user-kv2pu8rk2i 3 жыл бұрын
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
@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 kzfaq.info/get/bejne/hKemgLFj2demioE.html
@countalucard1347
@countalucard1347 3 жыл бұрын
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 3 жыл бұрын
Where do you get this error? After what action?
@countalucard1347
@countalucard1347 3 жыл бұрын
@@TheCodeholic asfter installing php debug and running the 'launch currently'
@davidhunt4291
@davidhunt4291 3 жыл бұрын
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.
@krishnashakya2858
@krishnashakya2858 3 жыл бұрын
receive this error: If anyone receives Server error: Error: spawn php ENOENT then just install PHP Server plugin..might be helpful for someone :)
@faisalhawlader6822
@faisalhawlader6822 3 жыл бұрын
Which plugin? where can I find it? please tell me.
@avenirdata406
@avenirdata406 3 жыл бұрын
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
@shaikhanuman8012
@shaikhanuman8012 2 жыл бұрын
hi sir ,can you make video on remove xdebug file ?
@user-wd1tx8cr5s
@user-wd1tx8cr5s 3 жыл бұрын
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?
@DarkKnight-ep9vq
@DarkKnight-ep9vq 3 жыл бұрын
have problem, don`t work with php 8 ( Error: listen eaddrinuse address already in use:::9003
@akshaysb526
@akshaysb526 2 жыл бұрын
did you get the answer?
@DarkKnight-ep9vq
@DarkKnight-ep9vq 2 жыл бұрын
@@akshaysb526 don't have answer, how fix that.
@anhtram4181
@anhtram4181 3 жыл бұрын
Why??? I can't download the file xdebug
@mohsinkhanshuvo5883
@mohsinkhanshuvo5883 2 жыл бұрын
Can anyone help me with how to adjust it in Linux and docker?
@TheCodeholic
@TheCodeholic 2 жыл бұрын
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.
@dibbyo456
@dibbyo456 3 жыл бұрын
Hello. Xdebug 3 is out, a lot things has been changed. Can you please publish a new video?
@TheCodeholic
@TheCodeholic 3 жыл бұрын
I think I will do, just I am not sure exactly when
@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 3 жыл бұрын
The XDebug wizard featured in the video should give you a precise set of constructions configured for your environment.
@LuisCarlos-pm6mi
@LuisCarlos-pm6mi 3 жыл бұрын
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
@user-qc6be9cq8v
@user-qc6be9cq8v 2 жыл бұрын
Lol
@shaileshchotoe
@shaileshchotoe 3 жыл бұрын
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.
@karlraymundo4701
@karlraymundo4701 3 жыл бұрын
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 3 жыл бұрын
Watch some videos on YT about what is debugging in general and then everything will become clear
@PabloPazosGutierrez
@PabloPazosGutierrez 3 жыл бұрын
$ php -i to get the phpinfo without writing code.
@ioavcont12
@ioavcont12 Жыл бұрын
to go hahahaha
@masoomsanadi
@masoomsanadi Жыл бұрын
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 kzfaq.info/get/bejne/ftiBiteT3b-VeKc.html
@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 жыл бұрын
@@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 2 жыл бұрын
followed all the instructions exactly. didn't work at all
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Which PHP and Xdebug versions do you have? Do you get any error?
@JustinEganCG
@JustinEganCG 2 жыл бұрын
@@TheCodeholic figured it out. mine wasn't enabled OOB had to do more to my PHP ini file
@taniax8944
@taniax8944 Жыл бұрын
THIS SHIT NOT WORKING I'm not talking about your tutorial but xdebug
@TheCodeholic
@TheCodeholic Жыл бұрын
Which version of PHP do you have?
@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
Debugging with Xdebug and PHPStorm
5:33
The Codeholic
Рет қаралды 76 М.
Setup debugging for PHP8.1 with XDebug 3 in VSCode
15:27
The Codeholic
Рет қаралды 63 М.
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4,8 МЛН
Is it Cake or Fake ? 🍰
00:53
A4
Рет қаралды 20 МЛН
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 61 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 38 МЛН
Tips and Tricks for Debugging JavaScript
13:03
James Q Quick
Рет қаралды 405 М.
Xdebug 3: Debugging Remote Code with VS Code
10:21
Derick Rethans
Рет қаралды 8 М.
Setup Xdebug WITH DOCKER and debug in VSCode
10:09
The Codeholic
Рет қаралды 22 М.
Debug PHP in VS Code on your local web server (XAMPP)
10:07
Installing Xdebug on MacOS (M1 chip)
9:32
Chris
Рет қаралды 2,4 М.
Are you debugging JavaScript in VSCode? | YOU SHOULD!
7:06
Alex Ziskind
Рет қаралды 150 М.
PHP Developer roadmap - How to Become a PHP Developer in 2022
23:50
The Codeholic
Рет қаралды 136 М.
How to Debug Code Like a Pro
11:11
Lama Dev
Рет қаралды 59 М.
Top 12 VScode Extensions for PHP
17:02
The Codeholic
Рет қаралды 120 М.
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4,8 МЛН