PHP Xdebug调试 ,出现Debug session was finished without being paused问题

Xdebug调试  ,出现Debug session was finished without being paused问题

在用Xdebug调试代码时,出现

Debug session was finished without being paused 
It may be caused by path mappings misconfiguration or not synchronized local and remote projects. 
To figure out the problem check path mappings configuration for ‘localhost’ server at PHP|Servers or enable Break at first line in PHP scripts option (from Run menu). 

这样的报错,这是因为请求的是:http://localhost:8080/index.php ,而在PHPStorm中的debug servers配置的是127.0.0.1:8080,这就导致了域名不相同了,所以只要改过来就可以了。

猜你喜欢

转载自blog.csdn.net/qq_26486949/article/details/88857757