debugging in eclipse using gdb on mac - Failed to execute MI command: -exec-run

前端 未结 3 1314
时光取名叫无心
时光取名叫无心 2021-01-24 08:48

I have my Eclipse Kepler and my simple HelloWorld C-program, where I wanted to learn how to debug a C-program. When clicking on the debug-button, I get the following error messa

3条回答
  •  时光取名叫无心
    2021-01-24 09:28

    If you get this below error, don't forget to add sudo in front of the command:

    sudo codesign -s gdb-cert $(which gdb-apple)

    codesign -s gdb-cert $(which gdb-apple)

    error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: can't create output file: /opt/local/bin/gdb-apple.cstemp (Permission denied)
    /opt/local/bin/gdb-apple: the codesign_allocate helper tool cannot be found or used
    

提交回复
热议问题