View Issue Details

IDProjectCategoryView StatusLast Update
0001068Xdebugpublic2014-11-11 19:48
Reportermichelkogan Assigned To 
PriorityurgentSeveritycrashReproducibilityalways
Status resolvedResolutionnot fixable 
PlatformEvery PlatformsOSEvery OSOS VersionEvery Versions
Product Version2.2.5 
Summary0001068: XDebug will crash without brackets
Description

In the code I've just uploaded, line 14 and 15 whenever I remove the surrounding bracket in if condition, xdebug is jumps out over the line. Even if you add a break-point in the function itself, its not able to break there too.

Problem will gone whenver you add the surronding brackets.

It won't break on foo_bar:

if ($x == 1)
$y->foo_bar(10);

It breaks on foo_bar:

if ($x == 1) {
$y->foo_bar(10);
}

Steps To Reproduce

1- add a breakpoint on line 15
2- Start debugging
3- It won't break there but the code is running that line.

Additional Information

Tested using PHPStorm.

TagsNo tags attached.
Operating SystemMac
PHP Version5.5.5-5.5.9

Activities

derick

2014-11-11 19:48

administrator   ~0002894

There is no bug here. PHP does not always communicate the correct line and
hence Xdebug has no means of breaking on it. An IDE can ask Xdebug through its
communications protocol which lines can break, and you need to ask your IDEs
manufacturer to implement this special DBGp function.