Author Topic: Cannot use debugger  (Read 564 times)

Offline garyyang

  • Single posting newcomer
  • *
  • Posts: 4
Cannot use debugger
« on: September 21, 2019, 07:03:31 pm »
My MacBook is MacOS Mojave Version 10.14.6.  Code::Blocks version is 13.12. When I debug the code, it pops up a terminal. At the Debugger console it shows:

Building to ensure sources are up-to-date
Selecting target:
Adding source dir: /Users/alex/codeblocks/TestDebug1/
Adding source dir: /Users/alex/codeblocks/TestDebug1/
Adding file: /Users/alex/codeblocks/TestDebug1/bin/Debug/TestDebug1
Changing directory to: /Users/alex/codeblocks/TestDebug1/.
Set variable: DYLD_LIBRARY_PATH=.:
Starting debugger: /usr/local/bin/gdb -nx -fullname  -quiet  -args /Users/alex/codeblocks/TestDebug1/bin/Debug/TestDebug1
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Can't launch console (osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell' sleep 80000880)
Debugger name and version: GNU gdb (GDB) 8.3
No stack.

It complains, ""Can't launch console (osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell' sleep 80000880)". Please help.