作者 | 时间 |
---|---|
雨中星辰 | 2020-03-09 |
问题描述
clion用着好好的,突然就不能debug了。
问题截图

问题原因
在debug时,clion会通过localhost找到本地机器的ip,使用一个随机端口,但是本人的localhost配置有问题,是这样的::1 localhost
,::1
是ipv6的ip,猜测可能是idea不支持ipv6
解决方法
将/etc/hosts的::1 localhost
改成27.0.0.1 localhost
作者 | 时间 |
---|---|
雨中星辰 | 2020-03-09 |
clion用着好好的,突然就不能debug了。
在debug时,clion会通过localhost找到本地机器的ip,使用一个随机端口,但是本人的localhost配置有问题,是这样的::1 localhost
,::1
是ipv6的ip,猜测可能是idea不支持ipv6
将/etc/hosts的::1 localhost
改成27.0.0.1 localhost
本文标题:clion中debug不生效
本文链接:https://www.haomeiwen.com/subject/tlwpdhtx.html
网友评论