Can't get XDebug working properly with Netbeans integration.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can't get XDebug working properly with Netbeans integration.

Postby karlkras » 19. October 2015 22:28

Hello,
Really, really needing to get a debugger working properly in this environment, and believe that xdebug should be what I would use.
I have a local apache server deployed and an app configured to run on localhost:8080 (ssl 4433), since I have an existing service already sitting on the default ports.

I'm using xampp v5.6.14 on a Windows 10 environment.

xampp configuration section from my php.ini looks like this right now:

Code: Select all
[XDebug]
zend_extension = C:\xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll
_extension = "C:\xampp\php\ext\php_xdebug-2.3.3-5.6-vc11.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port=9000
xdebug.remote_autostart=0
xdebug.trace_output_dir = "C:\xampp\tmp"

though this is changing on a minute by minute basis as I'm trying to get it to work properly.
From netbeans IDE I've loaded my php project and it runs normally just fine by going to:
localhost:8080/mycoolapp/index.php

so now, I set a break point and anywhere in my code, and initiate a debug session:
Code: Select all
Ctrl+F5

and the browser kicks off with the url:
http://localhost:8080/mycoolapp/index.php?XDEBUG_SESSION_START=netbeans-xdebug

yet the IDE sits there with a "Waiting For Connection (netbeans-xdebug)" message indefinitely.

I've tried editing the
Code: Select all
xdebug.remote_host = "127.0.0.1"

setting to include the non "standard" port address, i.e., "127.0.0.1:8080"

and a few other things that I think I'd rather not divulge at the moment :oops: , but nothing so far has seemed to work.
Am I missing something in this process? phpinfo is showing the the xdebug library has been found and loaded so I don't believe it's a linkage problem...

Could someone please provide some guidance on getting this sorted out?
karlkras
 
Posts: 6
Joined: 13. October 2015 17:32
Operating System: Windows 10

Re: Can't get XDebug working properly with Netbeans integrat

Postby Altrea » 19. October 2015 22:32

karlkras wrote:xdebug.remote_enable = 0

http://wiki.netbeans.org/HowToConfigureXDebug
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8298
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Can't get XDebug working properly with Netbeans integrat

Postby karlkras » 19. October 2015 23:02

Smokin! You pinpointed it right on the head. Thanks!
karlkras
 
Posts: 6
Joined: 13. October 2015 17:32
Operating System: Windows 10

Re: Can't get XDebug working properly with Netbeans integrat

Postby Altrea » 19. October 2015 23:38

You are welcome 8)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8298
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 36 guests