laurent
laurent

Reputation: 90776

Prevent xdebug to break at first line of index file

I have xdebug setup with Eclipse PDT. Every time I start a debug session, Eclipse breaks at the first line of my root index.php file. Is it possible to prevent this behavior?

Upvotes: 20

Views: 9726

Answers (2)

Faraj Farook
Faraj Farook

Reputation: 14875

This question is orginated from eclipes. But the title took me to this page when i'm searching for this issue.

So for beneficial of the community, anyone who is using netbeans, you can do this by tool -> options

enter image description here

Upvotes: 3

laurent
laurent

Reputation: 90776

Ok I found what the problem was. In Eclipse, I just needed to go in "Windows -> Preferences -> PHP -> Debug" and uncheck "Break at first line".

To make it work, I also had to go in "Run > Debug Configurations > PHP Web Application" and unselect "Break at first line" in all the configurations.

You might have to restart Eclipse for it to work.

Upvotes: 45

Related Questions