View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001309 | Xdebug | Step Debugging | public | 2016-06-08 23:29 | 2020-03-12 16:51 |
Reporter | niloct | Assigned To | derick | ||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | duplicate | ||
Platform | Mac | OS | El Captain | OS Version | 10.11.5 |
Product Version | 2.4.0 | ||||
Summary | 0001309: Changing context with context_get and evaluating property in this new context gets null value | ||||
Description | Is eval only supposed to work with context stack depth = 0 ? When I fetch a stack depth > 1, then try to eval a variable which exists in this stack depth context, null is returned. | ||||
Steps To Reproduce | Run the below code with a breakpoint set on the commented line, then issue a command "context-get -d 1" (change stack depth to 1), then "eval $A". The result is null instead of the array. =========================8<====================== <?php function B() {
} $A = array(); for ($i = 0; $i < 10; $i++) { B(); | ||||
Additional Information | See attached xdebug.log | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | Mac OS X El Captain | ||||
PHP Version | 5.5.30-5.5.34 | ||||
|
Sorry, stack depth > 0 |
|
The context_get does not change the internal reference of the current stack frame. It only gets information for that. Right now, the eval command does not support other stack depths besides "0". The protocol (https://xdebug.org/docs-dbgp.php#eval) also doesn't allow this possibility. |
|
This is a duplicate of 0001342: Add support for -d to eval. |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-06-08 23:29 | niloct | New Issue | |
2016-06-08 23:29 | niloct | File Added: xdebug.log | |
2016-06-09 21:08 | niloct | Note Added: 0003629 | |
2016-06-10 10:14 | derick | Note Added: 0003631 | |
2016-06-10 10:14 | derick | Status | new => resolved |
2016-06-10 10:14 | derick | Resolution | open => no change required |
2016-06-10 10:14 | derick | Assigned To | => derick |
2016-07-11 15:37 | derick | Assigned To | derick => |
2016-07-11 15:37 | derick | Status | resolved => new |
2016-07-11 15:37 | derick | Category | Debug client (console) => Feature/Change request |
2016-12-11 23:26 | derick | Note Added: 0004001 | |
2016-12-11 23:26 | derick | Relationship added | duplicate of 0001342 |
2016-12-11 23:26 | derick | Status | new => resolved |
2016-12-11 23:26 | derick | Resolution | no change required => duplicate |
2016-12-11 23:26 | derick | Assigned To | => derick |
2020-03-12 16:51 | derick | Category | Feature/Change request => Step Debugging |