1

Am learning debugging using Netbeans (PHP) with xDebug. I have set Breakpoint(s) in a php file am using but it seems anytime i start the debugging (clicking the start debug button) the system switches to the "index.php" file in the parent folder. The file am using is in a child folder of the folder containing the "index.php" file. How come the debugging goes to the "index.php" file?

What am i doing wrong? Am very new in using IDE debugging so help me out. I always use print statements to debug my code but i have decided to use professional debugging. Am just new in this area so help me know what is going on.

thanks.

1 Answer 1

1

Two things to look at:

  1. Tools->Options, PHP Section->Debugging Tab - Uncheck 'Stop at First Line'

  2. File->Project Properties - Run Configuration - Advanced - You can set the entry URL for the debugger. The default is to begin with the index page, but you can set it to ask for a url when the debugger is invoked.

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

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.