FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Big problem debugging

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
neelu7779



Joined: 18 Dec 2008
Posts: 4

PostPosted: Thu Dec 18, 2008 5:10 pm    Post subject: Big problem debugging Reply with quote

Help
I am using xdebug. The file I have downloaded is php_xdebug-2.0.3-5.3.0.dll

It is in the following location "C:\PHP\ext"

Following are the settings in the php.ini

zend_extension_ts="C:/PHP/ext/php_xdebug-2.0.3-5.3.0.dll"

xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_autostart=0
;xdebug.idekey=1
;xdebug.default_enable=off
;xdebug.profiler_output_dir="C:/PHP"
[xdebug]
xdebug.auto_trace = 1
xdebug.collect_includes = 1
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.default_enable = 1
xdebug.extended_info = 1
xdebug.show_local_vars = 0
xdebug.show_mem_delta = 1
xdebug.trace_format = 1
xdebug.trace_options = 0
xdebug.trace_output_dir ="C:/PHP"
; Remote
xdebug.remote_enable=0
xdebug.remote_mode="req"
xdebug.idekey=<idekey>

; Mode 2
xdebug.remote_handler="dbgp"
xdebug.profiler_enable = 1
xdebug.profiler_output_name = "debug.out"
xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD \

This is information about NetBeans
Product Version: NetBeans IDE Early Access for PHP (Build 200804221056)
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
System: Windows XP version 5.1 running on x86; Cp1252; en_US (php)
Userdir: C:\Documents and Settings\nilu\.netbeans\6.1ea-php

Using PHP 5.
Apache 2.0


Now the problems:

Menu attach Debugger is still disabled or grayed out.

When I try to debug the break point is never hit. Scripts run like a normal.

following is the URL of I get when I click "Debug main project"

http://localhost/index.php?XDEBUG_SESSION_START=netbeans-xdebug

When I close the browser debugger does not stop. It shows the "waiting for connection" status.

When I click the stop debugging button in NetBeans gives a messagebox "There is no connection from xdebug detected with in some seconds" xdebug is not configured or xdebug is not installed.

Please guide me to resolve the above mentioned issues and debug the project.
Back to top
View user's profile Send private message
Jan Chalupa
Posted via mailing list.





PostPosted: Fri Dec 19, 2008 9:05 am    Post subject: Big problem debugging Reply with quote

Just by looking at your php.ini settings, the following line is the
likely culprit:

xdebug.remote_enable=0

Remote mode has to be on for the NetBeans debugger to work:

xdebug.remote_enable=1

There may be other issues, but this is an obvious one.

Regards,
-Honza


neelu7779 wrote:
Quote:
Help

I am using xdebug. The file I have downloaded is php_xdebug-2.0.3-5.3.0.dll



It is in the following location "C:\PHP\ext"



Following are the settings in the php.ini



zend_extension_ts="C:/PHP/ext/php_xdebug-2.0.3-5.3.0.dll"



xdebug.remote_host="localhost"

xdebug.remote_port=9000

xdebug.remote_autostart=0

;xdebug.idekey=1

;xdebug.default_enable=off

;xdebug.profiler_output_dir="C:/PHP"

[xdebug]

xdebug.auto_trace = 1

xdebug.collect_includes = 1

xdebug.collect_params = 1

xdebug.collect_return = 1

xdebug.default_enable = 1

xdebug.extended_info = 1

xdebug.show_local_vars = 0

xdebug.show_mem_delta = 1

xdebug.trace_format = 1

xdebug.trace_options = 0

xdebug.trace_output_dir ="C:/PHP"

; Remote

xdebug.remote_enable=0

xdebug.remote_mode="req"

xdebug.idekey=<idekey>



; Mode 2

xdebug.remote_handler="dbgp"

xdebug.profiler_enable = 1

xdebug.profiler_output_name = "debug.out"

xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD \



This is information about NetBeans

Product Version: NetBeans IDE Early Access for PHP (Build 200804221056)

Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105

System: Windows XP version 5.1 running on x86; Cp1252; en_US (php)

Userdir: C:\Documents and Settings\nilu\.netbeans\6.1ea-php



Using PHP 5.

Apache 2.0





Now the problems:



Menu attach Debugger is still disabled or grayed out.



When I try to debug the break point is never hit. Scripts run like a normal.



following is the URL of I get when I click "Debug main project"



http://localhost/index.php?XDEBUG_SESSION_START=netbeans-xdebug



When I close the browser debugger does not stop. It shows the "waiting for connection" status.



When I click the stop debugging button in NetBeans gives a messagebox "There is no connection from xdebug detected with in some seconds" xdebug is not configured or xdebug is not installed.



Please guide me to resolve the above mentioned issues and debug the project.









Back to top
neelu7779



Joined: 18 Dec 2008
Posts: 4

PostPosted: Mon Dec 22, 2008 7:56 am    Post subject: Reply with quote

Hi Jan,

Thank you for pointing out that. I tried that before posting on the forum but got same response. I tried it after your reply but it is not working.

Infact, now it gives me an error

"Apache web server has encountered a problem and it needs to close."

Is there any thing needed to be done with the httpd.conf file of apache?
Please help me out. Confused
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB