| View previous topic :: View next topic |
| Author |
Message |
asuits
Joined: 03 Aug 2009 Posts: 4
|
Posted: Mon Aug 03, 2009 8:12 pm Post subject: Netbeans 6.7.1 Debugger not stepping through |
|
|
Hi:
New user here. I think I've made it through the xdebug docs and am up and running. I can't seem to figure out why I can't step through the simple debug example on the netbeans tutorial page.
I can set a breakpoint and when I debug, it brings up the debug (set serverside option), then brings up the web page with the factorial example results, but in Netbeans, I can't step through. All of the icons to do the "continue, step over, step into, step out, run to cursor" are grey'd out.
Here are the contents of the xdebug logs, but I can't see that there is an error. Any ideas of what I should try? I've struggled a bit with the docs and searching google to get this far. I hope I'm close.
WAMP server
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
PHP v5.2.9
xdebug error log:
Log opened at 2009-08-03 19:58:12
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/xampp/htdocs/PhpProject1/index.php" language="PHP" protocol_version="1.0" appid="5068" idekey="netbeans-xdebug"><engine version="2.0.4"><![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>
<- feature_set -i 114 -n show_hidden -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="114" feature="show_hidden" success="1"></response>
<- feature_set -i 115 -n max_depth -v 3
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="115" feature="max_depth" success="1"></response>
<- feature_set -i 116 -n max_children -v 31
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="116" feature="max_children" success="1"></response>
<- feature_get -i 117 -n max_data
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="117" feature_name="max_data" supported="1"><![CDATA[1024]]></response>
<- breakpoint_set -i 118 -t line -s enabled -f file:///C:/xampp/htdocs/or/index.php -n 92
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="118" state="enabled" id="50680011"></response>
<- breakpoint_set -i 119 -t line -s enabled -f file:///C:/xampp/htdocs/or/index.php -n 93
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="119" state="enabled" id="50680012"></response>
<- breakpoint_set -i 120 -t line -s enabled -f file:///C:/xampp/htdocs/or/include/misc.inc.php -n 201
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="120" state="enabled" id="50680013"></response>
<- breakpoint_set -i 121 -t line -s enabled -f file:///C:/xampp/htdocs/or/index.php -n 54
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="121" state="enabled" id="50680014"></response>
<- breakpoint_set -i 122 -t line -s enabled -f file:///C:/xampp/htdocs/PhpProject1/index.php -n 8
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="122" state="enabled" id="50680015"></response>
<- step_into -i 123
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="123" status="stopping" reason="ok"></response>
Log closed at 2009-08-03 19:58:12
With kind regards.
Last edited by asuits on Tue Aug 04, 2009 3:21 pm; edited 1 time in total |
|
| Back to top |
|
 |
asuits
Joined: 03 Aug 2009 Posts: 4
|
Posted: Tue Aug 04, 2009 1:38 pm Post subject: |
|
|
Here's more info in case I didn't post enough:
Product Version: NetBeans IDE 6.7.1 (Build 200907230233)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
(there seems to be a discrepancy in the java version being reported from netbeans compared to what is reported from the command line.)
from php.ini:
[Zend]
;zend_extension_ts = "C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
;zend_extension_manager.optimizer_ts = "C:\xampp\php\zendOptimizer\lib\Optimizer"
;zend_optimizer.enable_loader = 0
;zend_optimizer.optimization_level=15
;zend_optimizer.license_path =
; Local Variables:
; tab-width: 4
; End:
[XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
xdebug.remote_log="C:\xampp\apache\logs\xdebugerror.log"
Any help would be hugely appreciated.
|
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Wed Aug 05, 2009 7:38 am Post subject: Netbeans 6.7.1 Debugger not stepping through |
|
|
asuits wrote:
| Quote: | Hi:
New user here. I think I've made it through the xdebug docs and am up and running. I can't seem to figure out why I can't step through the simple debug example on the netbeans tutorial page.
I can set a breakpoint and when I debug, it brings up the debug (set serverside option), then brings up the web page with the factorial example results, but in Netbeans, I can't step through. All of the icons to do the "continue, step over, step into, step out, run to cursor" are grey'd out.
Here are the contents of the xdebug logs, but I can't see that there is an error. Any ideas of what I should try? I've struggled a bit with the docs and searching google to get this far. I hope I'm close.
| Debugged file:
file:///C:/xampp/htdocs/PhpProject1/index.php
we sent command:
step_into -i 123
and response from xdebug is status= stopping instead of status=break
You can try to send me your project or index.php file if you wish
Radek
| Quote: |
WAMP server
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
PHP v5.2.9
xdebug error log:
Log opened at 2009-08-03 19:58:12
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/xampp/htdocs/PhpProject1/index.php" language="PHP" protocol_version="1.0" appid="5068" idekey="netbeans-xdebug"><engine version="2.0.4"><![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>
<- feature_set -i 114 -n show_hidden -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="114" feature="show_hidden" success="1"></response>
<- feature_set -i 115 -n max_depth -v 3
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="115" feature="max_depth" success="1"></response>
<- feature_set -i 116 -n max_children -v 31
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="116" feature="max_children" success="1"></response>
<- feature_get -i 117 -n max_data
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="117" feature_name="max_data" supported="1"><![CDATA[1024]]></response>
<- breakpoint_set -i 118 -t line -s enabled -f file:///C:/xampp/htdocs/openrealty/index.php -n 92
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="118" state="enabled" id="50680011"></response>
<- breakpoint_set -i 119 -t line -s enabled -f file:///C:/xampp/htdocs/openrealty/index.php -n 93
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="119" state="enabled" id="50680012"></response>
<- breakpoint_set -i 120 -t line -s enabled -f file:///C:/xampp/htdocs/openrealty/include/misc.inc.php -n 201
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="120" state="enabled" id="50680013"></response>
<- breakpoint_set -i 121 -t line -s enabled -f file:///C:/xampp/htdocs/openrealty/index.php -n 54
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="121" state="enabled" id="50680014"></response>
<- breakpoint_set -i 122 -t line -s enabled -f file:///C:/xampp/htdocs/PhpProject1/index.php -n 8
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="122" state="enabled" id="50680015"></response>
<- step_into -i 123
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="123" status="stopping" reason="ok"></response>
Log closed at 2009-08-03 19:58:12
With kind regards.
|
|
|
| Back to top |
|
 |
asuits
Joined: 03 Aug 2009 Posts: 4
|
Posted: Wed Aug 05, 2009 12:43 pm Post subject: |
|
|
Hi Radek:
Thanks for the reply. My project file started out as a medium size project that I wanted to debug (the one in the /or directory) then when I was having an issue, I changed it to something simple so it would be easier to figure out why the debugger won't work.
The simple project did the same thing (won't show the step through or any other of the debug icons after I begin the debug session) and it's the simple demo from this page:
http://www.netbeans.org/kb/docs/php/debugging.html
I just did a cut and paste into a new project just like the instructions say. I don't think the problem is with the project, it must be with a setting somewhere on my machine (although I've tried it from two different machines running WAMP and same version of Netbeans).
Attached is the project directory.
Let me know what you suggest. Your help is appreciated.
| Description: |
|
 Download |
| Filename: |
PhpProject1.zip |
| Filesize: |
2.59 KB |
| Downloaded: |
31 Time(s) |
|
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Thu Aug 06, 2009 10:03 am Post subject: Netbeans 6.7.1 Debugger not stepping through |
|
|
asuits wrote:
| Quote: | Hi Radek:
Thanks for the reply. My project file started out as a medium size project that I wanted to debug (the one in the /or directory) then when I was having an issue, I changed it to something simple so it would be easier to figure out why the debugger won't work.
The simple project did the same thing (won't show the step through or any other of the debug icons after I begin the debug session) and it's the simple demo from this page:
http://www.netbeans.org/kb/docs/php/debugging.html
I just did a cut and paste into a new project just like the instructions say. I don't think the problem is with the project, it must be with a setting somewhere on my machine (although I've tried it from two different machines running WAMP and same version of Netbeans).
Attached is the project directory.
Let me know what you suggest. Your help is appreciated.
| Hi,
I've used your project, just changed Project URL according to my
personal setup and worked for me. Debugging and Running actions in
Netbeans IDE share the same Project URL , so as soon as running the
project is ok and you can see in your browser something like "The sum of
factorials of the entered integers is 3628920 " then also debugging
should work. You can try to remove all breakpoints (just to let it stop
at the first line) and watches and start again.
You can report it and we can try gradually find the cause although I
don't think your problem is netbeans bug
Radek
|
|
| Back to top |
|
 |
asuits
Joined: 03 Aug 2009 Posts: 4
|
Posted: Thu Aug 06, 2009 12:05 pm Post subject: |
|
|
Hi Thanks for looking at it. Yes, I get the browser window that pops up and it has computed the factorials, but the debugger does not work. I've tried clearing all breakpoints and I still can't use the step through and other debugging functions as they are gray'd out. I've tried it on two different machines running WAMP and netbeans and I get the same results.
I'm guessing it's a setting somewhere that's not quite right. I haven't been given anything to try - do you know what I should try? Is this the first time anyone's every seen this? Can I pay someone to connect to my machine and take a quick look?
With kind regards.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|