halwaraj Posted September 26, 2009 Share Posted September 26, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/175616-solved-issue-while-trying-to-debug-using-netbeans-671/ Share on other sites More sharing options...
Daniel0 Posted September 26, 2009 Share Posted September 26, 2009 Obviously it's your code that is programmed to redirect. Quote Link to comment https://forums.phpfreaks.com/topic/175616-solved-issue-while-trying-to-debug-using-netbeans-671/#findComment-925398 Share on other sites More sharing options...
halwaraj Posted September 26, 2009 Author Share Posted September 26, 2009 Nope I have debugged the same code earlier. Actually my machine had swine flu (VIRUS ATTACK) and it died. So had to format and I lost everything. Quote Link to comment https://forums.phpfreaks.com/topic/175616-solved-issue-while-trying-to-debug-using-netbeans-671/#findComment-925403 Share on other sites More sharing options...
Daniel0 Posted September 26, 2009 Share Posted September 26, 2009 My guess is that it isn't installed in a database hence the reason why it would redirect to a script called install.php. Quote Link to comment https://forums.phpfreaks.com/topic/175616-solved-issue-while-trying-to-debug-using-netbeans-671/#findComment-925411 Share on other sites More sharing options...
halwaraj Posted September 26, 2009 Author Share Posted September 26, 2009 :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( 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 Quote Link to comment https://forums.phpfreaks.com/topic/175616-solved-issue-while-trying-to-debug-using-netbeans-671/#findComment-925427 Share on other sites More sharing options...
Daniel0 Posted September 26, 2009 Share Posted September 26, 2009 [...] 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. Quote Link to comment https://forums.phpfreaks.com/topic/175616-solved-issue-while-trying-to-debug-using-netbeans-671/#findComment-925430 Share on other sites More sharing options...
halwaraj Posted September 26, 2009 Author Share Posted September 26, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/175616-solved-issue-while-trying-to-debug-using-netbeans-671/#findComment-925435 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.