[xdebug-general] Re: Stramge lineno in stack_get

From: Damjan Cvetko <zobo[@]scene-si.org>
Date: Wed, 10 Oct 2012 13:21:11 +0200

> Probably too old. Please upgrade to 2.2.1 and try again :-)

Did upgrade. Now something even funnier happened.

The lines that previously has lineno 0 have a valid lineno, but the
filenime is wrong. It looks like the value of filename for the stack level
in question is taken from level+1 entry.

In the example, level=3 should be common.php and level=1 should be some
other file. If this is something new, I can try to make a small test case.

<?xml version="1.0" encoding="iso-8859-1"?>

<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="xdc166">

<stack where="__autoload" level="0" type="file"
filename="file:///var/www/podsabotin/include/common.php" lineno="9"></stack>

<stack where="include" level="1" type="file"
filename="file:///var/www/podsabotin/include/common.php" lineno="4"></stack>

<stack where="__autoload" level="2" type="file"
filename="file:///var/www/podsabotin/include/common.php"
lineno="28"></stack>

<stack where="common::getDatabase" level="3" type="file"
filename="file:///var/www/podsabotin/index.php" lineno="246"></stack>

<stack where="{main}" level="4" type="file"
filename="file:///var/www/podsabotin/index.php" lineno="36"></stack>

</response>

Other info:

PHP Version => 5.3.3-7+squeeze14

xdebug support => enabled

Version => 2.2.1

IDE Key => root

Supported protocols => Revision

DBGp - Common DeBuGger Protocol => $Revision: 1.145 $

Best,

Zobo
Received on Wed Oct 10 2012 - 12:21:13 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST