View Issue Details

IDProjectCategoryView StatusLast Update
0000622XdebugStep Debuggingpublic2020-03-12 17:36
Reporterericp Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version2.1.0 
Summary0000622: Working with eval() code is inconvenient and difficult
Description

Given this code:

$text = <<<EOD
function foo(\$a1, \$b1) {
echo("In foo\n");
return \$a1 = \$b1;
}
EOD;
eval($text);
$res = foo(3, 4)

Stepping into the eval code shows one long line of code, in a separate
buffer:

function foo(\$a1, \$b1) {\n echo("In foo\n");\n return \$a1 = \$b1;\n}

When I step into foo(3, 4), xdebug can't get the buffer

Steps To Reproduce

Create a PHP buffer with the above kind of code in Komodo
(or another IDE that uses Xdebug and can support stepping
into eval code). Step into the above two lines, and
observe what happens.

Additional Information

See Komodo bug http://bugs.activestate.com/show_bug.cgi?id=88144

Note that this fix depends on the patch in
http://bugs.activestate.com/attachment.cgi?id=12714

TagsNo tags attached.
Operating System
PHP Version5.3.3

Activities

derick

2011-07-27 21:04

administrator   ~0001765

Fixed for 2.1.2 and 2.2.0.