Bug 240535 - pdt sends bad filename to xdebug
Summary: pdt sends bad filename to xdebug
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Kelsey CLA
QA Contact: Sylvia Tancheva CLA
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2008-07-11 15:47 EDT by johny CLA
Modified: 2020-05-14 11:08 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description johny CLA 2008-07-11 15:47:29 EDT
I've installed PDT 1.03 and xdebug 2.03

and when i try to debug a php file it doesnt stop at breakpoints
the xdebug log starts with telleing that te debugged file is:
file:///C:/xampp/htdocs/2/index.php

but the breakpoint are set in this file:
file:///C:%5Cxampp%5Chtdocs%5C2%5Cindex.php

'%5C' is a '\' and not a '/'  which causes the debugger to not stop at breakpoints.
Comment 1 David Kelsey CLA 2008-07-18 08:03:53 EDT
this is correct behaviour and would not cause any breakpoint issue. If you look at an example log of mine, you see that the initial file is 

file:///C:/shared/xampp/htdocs/TestProject/phpinfo.php

and the breakpoint is set at

file:///C:%5Cshared%5Cxampp%5Chtdocs%5CTestProject%5Cphpinfo.php

and that it breaks on this line just fine

One reason a breakpoint might not work is that PHP compiles out that line and so the line doesn't exist anymore.

Have you tried setting up breakpoints on other lines ?


---------------------------------------------------------------------------------
Log opened at 2008-07-15 09:26:58
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/shared/xampp/htdocs/TestProject/phpinfo.php" language="PHP" protocol_version="1.0" appid="7676" idekey="ECLIPSE_DBGP"><engine version="2.0.3"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2008 by Derick Rethans]]></copyright></init>

(Misc info removed)

<- breakpoint_set -i 14 -t line -f file:///C:%5Cshared%5Cxampp%5Chtdocs%5CTestProject%5Cphpinfo.php -n 3
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="14" id="76760003"></response>

<- run -i 15
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="15" status="break" reason="ok"><xdebug:message filename="file:///C:/shared/xampp/htdocs/TestProject/phpinfo.php" lineno="3"></xdebug:message></response>

(other misc info removed)

Log closed at 2008-07-15 09:27:02
---------------------------------------------------------------------------------
Comment 2 David Kelsey CLA 2008-08-09 06:48:51 EDT
this is working as designed. The problem could be a set up issue.
Comment 3 Gadi Goldbarg CLA 2008-10-07 03:39:42 EDT
Seems OK to me too - closing
[Sylvia]