简体   繁体   中英

How can I configure Xdebug for only one of the two applications running on my server?

I have a Vagrant virtual machine with two PHP applications installed. I always debug application A, but Xdebug is globally configured and watches both applications.

How can I configure Xdebug only for application A?

There is the function:

void xdebug_disable() Disables stack traces Disable showing stack traces on error conditions.

So if you want just to get rid of the displayed Stack Traces, you can use this (it doesn't disable xDebug entirely).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM