1. 程式人生 > >eclipse不能debug的解決方法,提示Failed to execute MI command: maintenance set python print-stack off

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.

Image:SelectOtherDebugger.png

Image:SelectOtherDebuggerDialog.png

選第二個 “stand create process launcher”

"Standard Create Process Launcher" is the old GDBintegration.