View Issue Details

IDProjectCategoryView StatusLast Update
0001016XdebugStep Debuggingpublic2020-11-12 16:16
Reporterwhitefire Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionwon't fix 
Target Version3.0dev 
Summary0001016: Support for pause-execution
Description

I would like to be able to pause-execution while the script is running. Practical when debugging long-running scripts or infinite loops.

TagsNo tags attached.
Operating System
PHP Version5.3.15-5.3.19

Activities

derick

2013-12-17 12:02

administrator   ~0002648

Do you mean the implementation of DBGP's break (http://www.xdebug.org/docs-dbgp.php#break) ? This would also require async support, and right now, no IDEs implement that either I think.

whitefire

2013-12-17 12:06

reporter   ~0002649

Last edited: 2013-12-17 13:06

Break definitely looks like what I'm looking for. Could you elaborate a bit about "async support"? I plan to add a feature request, but I need to know what I'm asking for.

Edit: nvm. I found it in the documentation!

Can't thank you enough for xDebug btw, it is my number 1. productivity-tool.

whitefire

2013-12-17 13:31

reporter   ~0002650

I have requested that Jetbrains implement this feature. Issue: http://youtrack.jetbrains.com/issue/WEB-10324

derick

2013-12-17 14:25

administrator   ~0002651

Xdebug does not implement async yet either though, so that has to be done first (as part of this FR).

whitefire

2013-12-17 14:33

reporter   ~0002652

Last edited: 2013-12-17 14:33

I added a link to this issue in youtrack. I suspect that not too many people have thought of, or felt the need for such a feature, but I guess time will tell.

derick

2016-12-11 23:34

administrator   ~0004008

Still true, but I am not putting this on the list for 2.6.0-dev.

Robert Lu

2019-05-31 07:25

reporter   ~0005034

Why do we mark supported=1 at the response of feature_get -n supports_async?

https://github.com/xdebug/xdebug/blob/2.7.2/xdebug_handler_dbgp.c#L1220-L1223

supports_async indicates the support of break command. Currently, break is not supported, it should be marked unsupported.

derick

2019-06-03 08:46

administrator   ~0005035

This is explained in the DBGp documentation: https://xdebug.org/docs-dbgp.php#feature-get

derick

2020-06-05 15:21

administrator   ~0005422

This got merged many months ago, through work by Robert Lu.