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?
Asked
Active
Viewed 9,233 times
2 Answers
45
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.

laurent
- 88,262
- 77
- 290
- 428
-
1Thank you. The "Run > Debug Configurations > PHP Web Application" was not obvious to me – Doo Dah Aug 07 '12 at 19:12
-
1I also found one more setting on "Project > Properties > PHP > Debug", unselect "Break at First Line" – zeta Oct 21 '16 at 20:11
-
Why is this even active by default! – The Berga Jul 17 '18 at 15:06
-
I am using XDebug Chrome plugin and I am not starting the project directly from Eclipse. I had to restart Eclipse. – Master DJon May 12 '22 at 23:01
3
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

Faraj Farook
- 14,385
- 16
- 71
- 97