Lv.的博客

Qtcreator远程调试出现“The selected build of GDB does not support Python scripting.It cannot be used .."

 

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/aristolto/article/details/77370853

    之前使用的是Qt4.7后来换成了Qt5.x,Qtcreator的版本使用4.0,使用中发现Qtcreator远程调试出现“The selected build of GDB does not support Python scripting.It cannot be used in Qt Creator.”

    意思是gdb不支持Python脚本不能再Qtcreator中使用。有问题问度娘找了半天终于发现一个能解决问题的分享一下:

    sudo apt-get install gdb-multiarch

   安装这个gdb工具。然后Qtcreator中Tools-->Options-->Build & Run 找到Debuggers选项卡添加/usr/bin/gdb-multiarch,对应的Kits中使用的gdb换成添加的这个。

    剩下的就是开启调试了。假设开发板的IP是192.168.1.123,虚拟机的IP是192.168.1.124。

1.登录到开发板telnet 192.168.1.123,

2.挂载nfs服务器 mount -t nfs  192.168.1.124:/nfsshare /mnt/nfs -o nolock,

3.然后gdbserver 192.168.1.124:8888 /mnt/nfs/yourapp -qws 回车,

4.最后Qtcreator中Debug菜单-->Start Debugging-->Attach to Running Debug Server

在弹出的窗口中kit选择自己配置的嵌入式的,

端口号8888,

Override Server Address:192.168.1.123, 

Local executable:可执行文件在虚拟机中的位置

点击OK就可以正常调试了。

posted @ 2019-08-07 11:57  Avatarx  阅读(2280)  评论(0编辑  收藏  举报