View Issue Details

IDProjectCategoryView StatusLast Update
0000427Xdebugpublic2009-03-03 09:35
Reporternforward Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionnot fixable 
Product Version2.0.0dev 
Summary0000427: Breakpoint ignored on certain if() statements
Description

A breakpoint on certain if() statements is ignored. It only seems to happen when there is a variable on its own and the open brace is on the line below.

Examples:

if ($foo) // Breakpoint here ignored
{
echo "bar";
}

if ($foo == "bar") // Breakpoint here NOT ignored
{
echo "bar";
}

if ($foo) { // Breakpoint here NOT ignored
echo "bar";
}

Additional Information

PHP 5.2.6 / Windows Vista / Apache:
Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.6

Xdebug 2.0.4

Eclipse 3.4.1 Build M20080911-1700 (PDT all-in-one)
PDT 2.0.0.v20081229-1135

All running on localhost (WAMP stack)

TagsNo tags attached.
Operating SystemWindows Vista 64 bit
PHP Version5.2.6

Activities

derick

2009-03-03 09:35

administrator   ~0000920

Unfortunately I can do very little about this. PHP simply has the line numbers wrong internally:

line # op fetch ext return operands

3 0 EXT_STMT
1 JMPZ !0, ->5
4 2 EXT_STMT
3 ECHO 'bar%0A'
5 4 JMP ->5
7 5 EXT_STMT
6 RETURN 1
7* ZEND_HANDLE_EXCEPTION

for

1 <?php
2 if ($foo)
3 {
4 echo "bar\n";
5 }
6 ?>

Issue History

Date Modified Username Field Change
2009-02-19 15:03 nforward New Issue
2009-02-19 15:03 nforward Operating System => Windows Vista 64 bit
2009-02-19 15:03 nforward PHP Version => 5.2.6
2009-02-19 15:03 nforward Xdebug Version => 2.0.4-dev
2009-03-03 09:35 derick Note Added: 0000920
2009-03-03 09:35 derick Status new => resolved
2009-03-03 09:35 derick Resolution open => not fixable
2009-03-03 09:35 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)