简体   繁体   English

在NetBeans中远程触发XDebug会话

[英]Trigger XDebug session remotely in NetBeans

In Eclipse I could use the Easy XDebug tool for Firefox to start a debugging session by clicking the debug icon and refreshing the page. 在Eclipse中,我可以使用适用于Firefox的Easy XDebug工具通过单击调试图标并刷新页面来启动调试会话。 Eclipse would then launch its debugger. 然后,Eclipse将启动其调试器。

This doesn't seem to work in NetBeans, the debugger doesn't start. 这似乎在NetBeans中不起作用,调试器无法启动。 You can start the debugger in NetBeans first, then start debugging in FireFox, but if you're not already in debug mode in NetBeans then the easy XDebug plugin has no effect. 您可以先在NetBeans中启动调试器,然后在FireFox中启动调试,但是如果您尚未在NetBeans中处于调试模式,那么简单的XDebug插件将无效。

Is it possible for debugging to be triggered externally in NetBeans? 是否可以在NetBeans中从外部触发调试? If so, how do I set it up? 如果是这样,我该如何设置?

There seem to be no way to start debugger remotelly. 似乎没有办法远程启动调试器。 However you have to start debugging session only once per browser launch, and then you can enable/disable with browser icon. 但是,每次浏览器启动时,您只需启动一次调试会话,然后可以使用浏览器图标启用/禁用。

Work around to prevent browser from launching is to set it to ls or some other tiny process which start and vanish instantly. 解决方法是将浏览器设置为ls或其他启动并立即消失的小进程,以防止浏览器启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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