Reputation: 2666
I'm writing a webapplication that uses JS and PHP. Each time I refresh I get about 5 ajax calls to my php script. This is getting quite annoying using XDebug since it breaks on each of those request (without a breakpoint placed).
I thought this was a common problem but I can't seem to find anyting about it. Does anyone know how to disable breaking on each request?
EDIT: I'm using Wamp and Netbeans 7.0
Upvotes: 6
Views: 1611
Reputation: 146350
It's the IDE the one that's stopping. In NetBeans, go to Tool-> Options-> PHP-> Debugging and uncheck Stop at first line.
(In earlier NetBeans versions the option was under Tool-> Options-> PHP-> General)
Upvotes: 12
Reputation: 36764
What is most likely that you have some empty src="" tags or alike. You need to find out what (by checking your apache logs) which requests are made. Xdebug itself does not decide to make requests.
Upvotes: 0
Reputation: 11077
From what i remember, xdebug adds something like XDEBUG_SESS_ID=xxxxxxxx
to the url when debugging. if this is the case, then remove that from the url.
Upvotes: 0