Rob
Rob

Reputation: 2666

PHP XDebug disable breaking on each request

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

Answers (3)

Álvaro González
Álvaro González

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.

Screenshot from NetBeans 8.0

(In earlier NetBeans versions the option was under Tool-> Options-> PHP-> General)

Upvotes: 12

Derick
Derick

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

Quamis
Quamis

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

Related Questions