eclipse不能debug的解决方法,提示Failed to execute MI command: maintenance set python print-stack off

提示:

Error in final launch sequence
Failed to execute MI command:
maintenance set python print-stack off
Error message from debugger back end:
Undefined maintenance set python command: "print-stack off". Try"help maintenance set python".
Undefined maintenance set python command: "print-stack off". Try"help maintenance set python".

因为gdb有升级,新版的gdb内删掉了一下命令,而EclipseCDT又刚好使用了这些命令,所以导致的不兼容,有一些python命令在cdt里面没有定义。




有两种解决方法:

1)重新替换一个低版本的gdb,亲测7.2兼容性高一些,(现在都7.11了)。

  找资源可以去我的博客资源里面有个7开头的gdb,下那个就行。



2)换debug程序用,具体如下:

 

How can I choose another debuggerintegration for CDT?

CDT provides different options for debugging. The default one iscalled DSF-GDB and is automatically selected for you. It uses GDBand provides support for the latest features such as ReverseDebugging, Non-stop multi-threaded debugging, Multi-processdebugging, Tracepoints, and more. If for some reason, you wish touse the older GDB integration or you prefer to use EDC you can dothe following can go to your launch window, and at the bottom ofany of the tabs, you will see a hyperlink "Select other...". Thisis how you can modify which debugger you will use.

eclipse不能debug的解决方法,提示Failed to execute MI command: maintenance set python print-stack off_第1张图片

eclipse不能debug的解决方法,提示Failed to execute MI command: maintenance set python print-stack off_第2张图片

选第二个 “stand create process launcher”

 

"Standard Create Process Launcher" is the old GDBintegration.



你可能感兴趣的:(开发环境,eclipse)