MantisBT - Xdebug
View Issue Details
0001561XdebugDocumentationpublic2018-07-01 02:032018-07-09 11:37
David536 
derick 
normalmajoralways
resolvedno change required 
Windows 10Windows 10Windows 10
2.6.0 
 
Windows 10
7.0.25-7.0.29
0001561: What do I do now?
I love the phpinfo-based installation instructions. But what do I do now? Where is the list of debugger commands, if any?

Specifically, my PHP program is looping. How do I interrupt the loop to examine where it is looping?
Download and install php_xdebug-2.6.0-7.0-vc14.dll in the ext folder. Now what to do? Documentation doesn't seem to help.
I've been programming in PHP for many years, but could use some help in debugging, particularly when the program loops forever.

PHP/7.0.30
No tags attached.
Issue History
2018-07-01 02:03David536New Issue
2018-07-09 09:35derickNote Added: 0004678
2018-07-09 09:35derickStatusnew => resolved
2018-07-09 09:35derickResolutionopen => no change required
2018-07-09 09:35derickAssigned To => derick
2018-07-09 11:30David536Note Added: 0004679
2018-07-09 11:37derickNote Added: 0004680

Notes
(0004678)
derick   
2018-07-09 09:35   
In general, you need an IDE to interact with Xdebug to debug. PhpStorm will give you the best results.

As this bug tracker is not a support forum, I'd like to point you to:
- https://xdebug.org/docs/remote [^]
- https://enrise.com/2018/02/debugging-php-with-xdebug/ [^]
(0004679)
David536   
2018-07-09 11:30   
The public XDebug descriptions should be changed to make it clear that it is not a stand-alone debugger, so people don't waste their time with it.

I've looked into PHPStorm in the past, and it costs way too much for our nonprofit charity to afford.

My workaround is to continue my own tool development. Yesterday I wrote a function to add the PHP Backtrace in clear, readable form to my general logging function.

I understand that a bug reporting tool is not a forum for support. You really need to improve your external descriptions of XDebug so people will understand its surprising limitations. Just my opinion.
(0004680)
derick   
2018-07-09 11:37   
Literally the first thing on the website (https://xdebug.org/ [^]):

"About

Xdebug is an extension for PHP to assist with debugging and development. It contains a single step debugger to use with IDEs;"…