2

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.

3 Answers 3

5

I would recommend using Xdebug.

Read about Xdebug Remote Debugging, this integrates with NetBeans.

Sign up to request clarification or add additional context in comments.

Comments

2

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 :)

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.