![]() Once you make it working - try real project. Instead of trying to debug complex app straight away - create brand new empty project/site with one simple (few lines) file only and try to make debugger work there. but should not prevent from not working at all). Click the Xdebug Helper icon on the browser toolbar to initiate a debugging, profiling or tracing session: As a rule, no further configuration is. Initiate connection from the browser side. Install XAMPP in the default directory C:\xampp, or you might encounter permission troubles later on. In PhpStorm, enable listening to incoming debug connections by either clicking on the toolbar or selecting Run Start Listening for PHP Debug Connections. Download XAMPP last version from I use version 7.2.9 (not the latest): 2. If not - it's either disabled or does not see debug request (cookie/get parameter)īTW: what xdebug version do you have? It's recommended to be v2.2.1 or newer (2.2.0 is quite unstable. First you need to install and configure XAMPP and integrate it with PhpStorm (4 steps): 1. You will easily see from xdebug log if xdebug tries to connect to IDE or not. Always try to set breakpoints on simple one-liners.Ĥ) Collect more logs and check them for details: multiline array definitions simple "if" statement with no braces used etc). ![]() How do I know that the debugger is active or I just have not set a breakpoint in the right spot?ġ) Put xdebug_break() somewhere in your code - this will programmatically trigger breakpoint.Ģ) Please show output of phpinfo() when you trying to debug (header table (where I can see that xdebug is installed and other relevant info) actual xdebug section PHP Variables section (I just want to see if xdebug cookie/get param is there))ģ) Some breakpoints cannot be hit by xdebug due to the way how PHP generates bytecode (e.g. ![]() It's normal - all what "Start Debugger" bookmarklet does is setting up xdebug cookie ONLY. Usually, at work, when I want to debug stuff, I add xdebugbreak() somewhere near the offending code line, turn on 'Start listening for PHP Debug Connections', and then it would stop at. I want to use Xdebug at home using XAMPP, but I'm not sure how to set it up. ![]() What OS you are on? On some OS (or, better say, Apache/PHP distributions) PHP may have two different config files - one for CLI mode and one when used by Apache.ĭoes both of them show xdebug installed (I mean: "php -i" for CLI and for web) ?īy the way there is no output from clicking on the hyperlink 'Start debugger' At work, we use dockers to run our servers, and we work with PhpStorm and Xdebug. I have installed XDebug and php -i shows that it is installed ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |