[xdebug-dev] Bug 0000217: stepping through code sometimes gives a wrong execution line

From: <noreply[@]lists.xdebug.org>
Date: Mon, 30 Oct 2006 14:41:16 +0100

The following NEW bug has been ADDED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000217
======================================================================
Reporter: bhofmann
Handler:
======================================================================
Project: Xdebug
Bug ID: 217
Category: Usage problems
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Operating System:
PHP Version: 5.1.6
Xdebug Version: 2.0.0rc1
======================================================================
Date Submitted: 2006-10-30 14:41 CET
Last Modified: 2006-10-30 14:41 CET
======================================================================
Summary: stepping through code sometimes gives a wrong execution line
Description:
When stepping trough this kind of code using step over:

if ($var){
        $test = "azerty";
}

Xdebug stops at the "if", then the test line: this is ok. However with
this code:

if ($var)
{
        $test = "azerty";
}

Xdebugs skips the "if" but steps on the opening curly brace, then steps on
the test line. And finally with this:

if ($var)
        $test = "azerty";

the "if" line is skipped and Xdebug step directly to the test line.
======================================================================

Bug History
Date Modified Username Field Change
======================================================================
2006-10-30 14:41bhofmann New Bug
2006-10-30 14:41bhofmann Bug Monitored: bhofmann
======================================================================
Received on Mon Oct 30 2006 - 14:41:44 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST