This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 237910 - No green arrow while debugging
Summary: No green arrow while debugging
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-02 13:44 UTC by maxym
Modified: 2016-08-29 06:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
paths mapping (31.22 KB, image/png)
2013-11-02 13:44 UTC, maxym
Details
debugged source (37.87 KB, image/png)
2013-11-02 13:45 UTC, maxym
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maxym 2013-11-02 13:44:32 UTC
Config:
NB Build 201310210001
xdebug: php_xdebug-2.2.3-5.2-vc9.dll
Remote debugging: IDE on my machine, Apache in VirtualBox run on my machine.
Paths mapping: configured (see screenshot)

I found that sometimes (mostly) green arrow doesn't show line where debugger has stopped. Also IDE doesn't follow debugger switching to just debugged source file.
I can track debugged points using CallStack pane but it's not solution.

I found it has been reported a few times (years ago). I've read in some cases disabling watches/balloons evaluation or Stop at First Line helped. But still, such magic solutions are not working for me (except once it started to work and stopped again while I tried to reproduce it for this report)

I'm attaching 2 screenshots: config and just debugged code with call stack.
You may notice that there is no green arrow at all.

What makes me confused, are paths to debugged files (in call stack). 
First of all, those are server side paths. I'm not sure should NB translate it to local ones (see mapping config). 
Second thing is tripple slash in the path. Shouldn't it be double slash?
Comment 1 maxym 2013-11-02 13:44:54 UTC
Created attachment 141800 [details]
paths mapping
Comment 2 maxym 2013-11-02 13:45:15 UTC
Created attachment 141801 [details]
debugged source
Comment 3 maxym 2015-02-09 22:50:58 UTC
I would like to pump this issue again.

here are some snippets. Please note triple slash in second snippet.
I found that calling it this way brings the issue up. which corresponds with attached screenshots.
If path contains double slash then everything is OK.

file private.properties

debug.path.mapping.remote=z:\\html\\www.somepath.pl\\
debug.url=DO_NOT_OPEN_BROWSER

file xdebug.log

Log opened at 2015-02-07 15:44:01
I: Connecting to configured address/port: 192.168.0.140:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Z:/html/www.somepath.uk/cms/index.php" language="PHP" protocol_version="1.0" appid="3352" idekey="netbeans-xdebug"><engine version="2.2.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2014 by Derick Rethans]]></copyright></init>


<- feature_set -i 0 -n show_hidden -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="0" feature="show_hidden" success="1"></response>

<- feature_set -i 1 -n max_depth -v 3
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="max_depth" success="1"></response>

<- feature_set -i 2 -n max_children -v 30
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_children" success="1"></response>

<- feature_set -i 3 -n max_data -v 2048
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="max_data" success="1"></response>

<- breakpoint_set -i 4 -t line -s enabled -f file:///z:/html/www.somepath.pl/class/class_article.php -n 291
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="4" state="enabled" id="33520001"></response>