同时使用php的Xdebug调试2台服务器 [英] Debugging 2 servers with php's Xdebug at the same time
问题描述
我有一个PHP脚本正在向其他服务器上的另一个php脚本发送一系列http请求.我在两台服务器上都安装了Xdebug,并且将NetBeans用作调试客户端.我遇到的问题是NetBeans不能同时具有2个调试会话,并且您不能在同一台计算机上产生2个NetBeans进程.我是否必须同时运行Eclipse和NetBeans?(YUCK!)还是有更好的方法?
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?
推荐答案
我将获得另一台计算机,在其上安装Netbeans,并将每个服务器连接到其自己的调试器.这将帮助您更好地了解正在发生的事情.
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.
替代方法:将虚拟机安装在盒子中,然后将Netbeans放在其中.
Alternate approach: install a virtual machine inside your box, put Netbeans there.
这篇关于同时使用php的Xdebug调试2台服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!