Reputation: 6428
I am just beginning my journey into PHP world and I chose Netbeans editor. I am using the latest one i.e V7.0.1 and setup WAMP. However, I don't quiet understand how will I debug my PHP code? My breakpoints don't get hit in Netbeans.
Any help would be useful.
Thanks.
Upvotes: 2
Views: 713
Reputation: 48
See this document: http://netbeans.org/kb/docs/php/debugging.html
Or more generally, the PHP Learning Trail: http://netbeans.org/kb/trails/php.html
Upvotes: 0
Reputation: 542
In addition to debugging, learn how to profile your code with XDEBUG. You can configure Xdebug so there is a switch ?XDEBUG_PROFILE added to your URL, which will record the precise time of each statement. Install webgrind to see detailed reports in your browser. WAMP may already have it installed, just look in your PHP.INI file. If not visit the XDEBUG site.
Learn how to write efficient code from the start :)
Upvotes: 2
Reputation: 44979
I would recommend using Xdebug.
Read about Xdebug Remote Debugging, this integrates with NetBeans.
Upvotes: 5