View Issue Details

IDProjectCategoryView StatusLast Update
0001068Xdebug(No Category)public2014-11-11 19:48
ReportermichelkoganAssigned Toderick 
Status resolvedResolutionnot fixable 
PlatformEvery PlatformsOSEvery OSOS VersionEvery Versions
Product Version2.2.5 
Target VersionFixed in Version 
Summary0001068: XDebug will crash without brackets
DescriptionIn 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)

It breaks on foo_bar:

if ($x == 1) {
Steps To Reproduce1- add a breakpoint on line 15
2- Start debugging
3- It won't break there but the code is running that line.
Additional InformationTested using PHPStorm.
TagsNo tags attached.
Operating SystemMac
PHP Version5.5.5-5.5.9



2014-07-21 15:21


xdebug.php (168 bytes)


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.

Issue History

Date Modified Username Field Change
2014-07-21 15:21 michelkogan New Issue
2014-07-21 15:21 michelkogan File Added: xdebug.php
2014-11-11 19:48 derick Note Added: 0002894
2014-11-11 19:48 derick Status new => resolved
2014-11-11 19:48 derick Resolution open => not fixable
2014-11-11 19:48 derick Assigned To => derick
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)