phpstorm xdebug 配置遇到的问题

        最初我用的php版本是5.6 ,phpstorm版本是2017.2月版本,配置的xdebug是2.6.1,这三者的版本是兼容的,xdebug断点调试是可以成功的。

       最近将php升级到7.3版本,而xdebug也升级到2.8.0,phpstorm版本就没有变动,按部就班的将php.ini配置成如下:

      [XDebug]

     zend_extension="E:\XAMPP\php\ext\php_xdebug.dll"
    xdebug.remote_host=localhost
    xdebug.remote_port=9002
   xdebug.remote_enable=on
   xdebug.auto_trace=on
   xdebug.remote_autostart=1
   xdebug.remote_handler=dbgp
   xdebug.idekey=PHPSTORM

  phpstorm配置完全与之前的一致,但是就是调不通,一致报如下错误:

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 'testXdebug' server at PHP|Servers or enable Break at first line in PHP scripts option

xdebug能进入第一行,第2行之后的代码一直调试不了,我试着将如下红线标注的取消掉,一直还是出现上述问题。最后查阅了相关博文之后,可能是由于有php, phpstorm,xdebug三者的版本不兼容造成的。

我随之将phpstorm版本升级到2019.2版本。xdebug果然成功调通。这个浪费了我一上午的时间,现在将这个坑记录下来。

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值