troubleshooting Question

Debugging PHP code

Avatar of Camillia
CamilliaFlag for United States of America asked on
PHPApache Web Server
8 Comments1 Solution663 ViewsLast Modified:
I have WAMP, NetBeans and phpMySQL. I want to debug the code in netbeans on my local machine.

I click the debug button, page comes up with this URL

http://localhost:88/BDTestProject/index.html?XDEBUG_SESSION_START=netbeans-xdebug

But I get a msg at the bottom of netBeans "waiting for connection..". Debugger doesnt stop at the debug lines...
I found this link and I get the pop-up msg at the end of this link when I stop the debugger.
http://martinsikora.com/debugging-php-in-netbeans-using-xdebug

There's a script that the link says to run to open port 9000 but that link isnt found.

I followed the steps in that link. I've attached a screenshot. Any other ideas why the debugger doesnt stop at debug lines? What is that script that should be run?

This is in my PHP.ini. I've attached my screenshots as well.

I even tried this
http://arturito.net/2011/05/21/local-and-remote-php-debuging-in-netbeans-with-xdebug-on-google-chrome-just-like-in-visual-studio/

and this

https://www.jetbrains.com/phpstorm/webhelp/configuring-xdebug.html


; XDEBUG Extension

zend_extension = "c:/wamp/bin/php/php5.4.3/zend_ext/php_xdebug-2.2.0-5.4-vc9-x86_64.dll"

[xdebug]
xdebug.remote_enable = on
xdebug.profiler_handler = dbgp
xdebug.remote_host = localhost:88
xdebug.profiler_host = localhost:88
xdebug.profiler_port = 9000
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = on
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
Doc1.docx
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros