xdebug.remote_port 必须与此处指定的相同: HTTP端口(大多数服务器的默认端口为80,但在测试时可以为8080或您在网络服务器设置中配置的任何端口):您可能会发现使用零调试配置,而不是使用PHP应用程序运行/调试配置.I've got a localhost webserver setup with WebMatrix and its IISExpress. It runs the webserver as http://localhost:<port>.I've also installed xdebug in it which runs perfectly for error-handling purposes.Now I have installed PhpStorm and I want to make use of its debugger's break-point wizardry. It uses Xdebug's /?XDEBUG_SESSION_START=<IDEKEY> feature and This is where I'm having trouble.In all, I have 3 places where I can set PORT:(a) Port in xdebug.remote_port in php.ini.(b) Port in WebMatrix.(c) Port in PhpStorm's Server settings, in Run/Debug configurationSo far messing around, I've come to the conclusion that all three cannot be the same. otherwise it gives errors...Which port to use where? 解决方案 xdebug.remote_port is used for the debugger connection, it must be different from the HTTP web port that you are using to access the page in a browser.xdebug.remote_port needs to be the same as specified here:HTTP port (80 is the default for most servers, but when testing it could be 8080 or whatever you have configured in your web server settings) is configured here:You may find it easier to use Zero Debug Configuration instead of using PHP Application Run/Debug configuration. 这篇关于PhpStorm | WebMatrix(IISExpress)| Xdebug.remote_port | -将哪个端口放到哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 14:56
查看更多