Debugging 2 servers with php's Xdebug at the same time

懵懂的女人 提交于 2019-12-24 11:20:47

问题


I have a PHP script that is sending a series of http requests to another php script on another server. I have Xdebug installed on both servers and I'm using NetBeans as my debug client. The problem I am having is that NetBeans can't have 2 debug sessions at the same time and you can't spawn 2 NetBeans processes on the same machine. Am I going to have to run Eclipse and NetBeans at the same time?(YUCK!) Or is there a better way?


回答1:


I would get another machine, install Netbeans on it, and connect each server to its own debugger. This will help you understand what's happening much better.

Alternate approach: install a virtual machine inside your box, put Netbeans there.



来源:https://stackoverflow.com/questions/2348667/debugging-2-servers-with-phps-xdebug-at-the-same-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!