View Issue Details

IDProjectCategoryView StatusLast Update
0000949XdebugUncategorizedpublic2013-06-22 13:11
ReporterSiMoSiMo Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionnot fixable 
PlatformLinuxOSDebianOS Version5.0
Product Version2.2.1 
Summary0000949: Breakpoint on the boolean if statement
Description

I've noticed that if I put a breakpoint on a boolean if built in one of the following ways:

if (1)

if (TRUE)

$test = TRUE;
if ($test)

$test = 'foo';
if ($test)

xdebug fails to detect it.

Is it normal? Am I doing something wrong?

Steps To Reproduce

Put breakpoint at one of this if:
if (1)

if (TRUE)

$test = TRUE;
if ($test)

$test = 'foo';
if ($test)

Additional Information

http://php.net/manual/en/types.comparisons.php

TagsNo tags attached.
Operating System
PHP Version5.3.10

Activities

derick

2013-06-22 13:11

administrator   ~0002508

There is not a lot I can do about this. PHP doesn't generate "in between" statements for this sort of code and hence Xdebug can't latch on to that to make a breakpoint. It will work fine if you use { } for the if and else clauses.

Issue History

Date Modified Username Field Change
2013-06-11 13:46 SiMoSiMo New Issue
2013-06-22 13:11 derick Note Added: 0002508
2013-06-22 13:11 derick Status new => resolved
2013-06-22 13:11 derick Resolution open => not fixable
2013-06-22 13:11 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized