2015-03-19 85 views
2

我一直試圖在Mac上通過eclipse調試C++。我已經通過HomeBrew安裝了gdb,並且已經通過我自己創建的證書進行了簽名。之後,我已經重新啓動了我的電腦。不能在eclipse中使用debug for man

但是當我現在運行它,它顯示如下:

Error in final launch sequence 
Failed to execute MI command: 
-exec-run 
Error message from debugger back end: 
Unable to find Mach task port for process-id 31498: (os/kern) failure (0x5).\n 
(please check gdb is codesigned - see taskgated(8))  
Unable to find Mach task port for process-id 31498: (os/kern) failure (0x5).\n 
(please check gdb is codesigned - see taskgated(8)) 

誰能告訴我怎麼解決這個問題?使用的

回答

0

sudo /usr/local/bin/gdb 

代替

/usr/local/bin/gdb 
在GDB調試器設置

在Eclipse

+0

這不起作用。 – zProgrammer 2015-06-06 16:31:59