View Issue Details

IDProjectCategoryView StatusLast Update
0000579XdebugStep Debuggingpublic2020-03-12 16:51
Reporterussher Assigned Toderick  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionwon't fix 
Product Version2.0.0dev 
Summary0000579: The ability to start and stop xdebug remote sessions from php code.
Description

currently it is possible to start an xdebug remote session by adding XDEBUG_SESSION_START to the URL or by a setting in php.ini to always start the remote sessions.

It would be nice to have a feature that triggers the remote session to start from within the code.

WHY: When trying to debug the returning IPN information from Paypal the IPN is sent behind the scenes, not in the browser. If it was possible to activate a remote debugging session from the code then I could add that to the code that receives the paypal IPN and start debugging from there.

Currently it is necessary to turn the debugging session on for everything happening around as well.

It would be nice to be able to not debug everything else and just start stuff when the IPN comes back.

Thanks.

TagsNo tags attached.
Operating Systemlinux
PHP Version5.3.2

Activities

jpic

2010-10-07 14:02

reporter   ~0001579

In the mean time, you can set your debugger client to not stop at first line (only stop at first break) and call xdebug_break() in your IPN script.

whitefire

2011-04-26 11:59

reporter   ~0001727

I would really like this feature too! Make it similar to Phped's DebugBreak(). Sometimes it's really important that code-execution does not continue if xDebug is unable to connect to the IDE.

whitefire

2011-04-27 10:09

reporter   ~0001728

Just adding a couple of optional parameters to xdebug_break() would suffice. xdebug_break(true, 'netbeanside') where true is autostart session and second parameter is ide-key.

derick

2011-05-01 21:47

administrator   ~0001736

I think you can already do this with the following settings:

xdebug.remote_autostart=1
xdebug.remote_mode=jit

and then just call xdebug_break().

whitefire

2011-05-02 07:28

reporter   ~0001738

How does that work with an xDebug-proxy? xDebug must know which client to contact.

whitefire

2011-10-14 10:12

reporter   ~0001844

Last edited: 2011-10-14 10:12

Also, JIT and autostart in a multiuser-environment is not a realistic setup. We actually tried by accident! :)

pcunite

2013-03-29 21:26

reporter   ~0002450

Another vote for this feature. DebugBreak(1@my_ip_address) is extremely helpful for PayPal IPN testing. Works very well.

derick

2016-12-12 00:08

administrator   ~0004024

I've explained how to do this with xdebug.remote_mode=jit and xdebug_break() already.

Issue History

Date Modified Username Field Change
2010-05-14 09:36 ussher New Issue
2010-05-14 09:36 ussher Operating System => linux
2010-05-14 09:36 ussher PHP Version => 5.3.2
2010-05-14 09:36 ussher Xdebug Version => 2.0.5
2010-10-07 14:02 jpic Note Added: 0001579
2011-04-26 11:59 whitefire Note Added: 0001727
2011-04-27 10:09 whitefire Note Added: 0001728
2011-05-01 21:47 derick Note Added: 0001736
2011-05-01 21:47 derick Assigned To => derick
2011-05-01 21:47 derick Status new => feedback
2011-05-02 07:28 whitefire Note Added: 0001738
2011-10-14 10:12 whitefire Note Added: 0001844
2011-10-14 10:12 whitefire Note Edited: 0001844
2013-03-29 21:26 pcunite Note Added: 0002450
2016-12-04 19:11 derick Status feedback => new
2016-12-12 00:08 derick Note Added: 0004024
2016-12-12 00:08 derick Status new => resolved
2016-12-12 00:08 derick Resolution open => won't fix
2020-03-12 16:51 derick Category Feature/Change request => Step Debugging