Jump to content

[SOLVED] Issue while trying to debug using Netbeans 6.7.1


halwaraj

Recommended Posts

Hey guys I am trying to run remote debugger in Netbeans.

 

My Environment:

 

This is a Virtual Machine. VirtualBox.org by Sun Microsystems.

Windows XP SP3

Wamp

Netbeans 6.7.1

 

 

I am trying to debug drupal code base.

 

 

I have tried to follow the instruction on Netbeans and other sites. NO LUCK YET.

 

When I launch the debugger from NB the URL does show

 

 

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

 

but it gets redirected to regular URL

 

http://localhost/pra/install.php?profile=default

 

Dont know what is the reason.

 

I have tried both versions of xdebug dll ie thread safe and non thread safe.

 

Please help

 

Halwaraj

:'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(

 

You are right. It was getting redirected for installation. So I did the installation and tried to debug again.

 

No luck. This time it did not get redirected, the URL had the debug parameter as

 

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

 

Netbeans, however, was not able to connect still. It kept on waiting and when i manually cancelled the wait process, it said either xdebug is either  not installed or not configured properly.

 

 

Please help

[...] it said either xdebug is either  not installed or not configured properly.

 

So have you checked that it is? I.e. making sure that phpinfo() has info about xdebug and making sure that NetBeans is listening to the correct port.

OOPS really sry.

 

What I did was copied the php.ini snippet from a site and somehow forgot to change the dll path to my local path.

 

[debug]

zend_extension_ts="C:/wamp/bin/php/php5.2.8/ext/php_xdebug-2.0.4-5.2.8.dll"

xdebug.remote_enable=on

xdebug.remote_handler=dbgp

xdebug.remote_host=localhost

xdebug.remote_port=9000

xdebug.remote_mode=req

 

 

The "zend_extension_ts" was pointing to a non-existent file. Corrected that and everythings fine.

 

Sorry for being a noob.

 

Please dont mind.

 

Thanks a ton for the support.

 

 

Praveen

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.