User forums > Using Code::Blocks

OSX and debugging

(1/2) > >>

phisch2:
Hello,
I've searched the forums and seen that the debugger does not currently function correctly under OSX.  If some developer is willing to help me figure out what is going on, I'm happy to try to troubleshoot the problem on my mac.  Fwiw, the debugger process seems to start up and a terminal window opens, but the executable is not running in that terminal window.  Everything works fine when just running an executable, the terminal opens, the program runs, etc., just not under the debugger.  If someone wants to give me a list of things to try/check I'm ready to go.
Thanks,
-Phil

oBFusCATed:
Are you able to debug a program that is not a console one, say you switch the type in project -> properties -> build targets -> type to GUI?

phisch2:
Tried changing type to GUI.  Set a breakpoint in main and hit Debug/Continue.  Execution looks like is stops at the breakpoint (I see the yellow arrow), and I am able to set up watches for variables in main when I hit the breakpoint.  However, all debug icons are grayed out except "Debugging Windows."  So I can't step the program or run it to completion or do anything else as far as I can tell.  I have to "Force Quit" Codeblocks.  This is basically the same behavior as when I build as a Console Application, except in that case a Terminal window opens but does not run any other process, and I get the oascript error message in the Debugger log window.

oBFusCATed:
Please enable full logging in the settings of the debugger and paste the log from the GUI session.

phisch2:

--- Quote from: oBFusCATed on January 13, 2014, 08:08:30 pm ---Please enable full logging in the settings of the debugger and paste the log from the GUI session.

--- End quote ---
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /Users/phil/Desktop/guessing/
Adding source dir: /Users/phil/Desktop/guessing/
Adding file: /Users/phil/Desktop/guessing/bin/Debug/guessing
Changing directory to: /Users/phil/Desktop/guessing/.
Set variable: DYLD_LIBRARY_PATH=.:

[debug]Command-line: /usr/bin/gdb -nx -fullname  -quiet  -args /Users/phil/Desktop/guessing/bin/Debug/guessing
[debug]Working dir : /Users/phil/Desktop/guessing

Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args /Users/phil/Desktop/guessing/bin/Debug/guessing
done

[debug]> set prompt >>>>>>cb_gdb:

Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints

[debug]Reading symbols for shared libraries ... done
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb 6.3.50-20050815 (Apple version gdb-1752) (Sat Jan 28 03:02:46 UTC 2012)
[debug]Copyright 2004 Free Software Foundation, Inc.
[debug]GDB is free software, covered by the GNU General Public License, and you are
[debug]welcome to change it and/or distribute copies of it under certain conditions.
[debug]Type "show copying" to see the conditions.
[debug]There is absolutely no warranty for GDB.  Type "show warranty" for details.
[debug]This GDB was configured as "x86_64-apple-darwin".
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb 6.3.50-20050815 (Apple version gdb-1752) (Sat Jan 28 03:02:46 UTC 2012)

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]>>>>>>cb_gdb:
[debug]> source /Applications/CodeBlocks.app/Contents/Resources/share/codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory /Users/phil/Desktop/guessing/
[debug]>>>>>>cb_gdb:
[debug]> break "/Users/phil/Desktop/guessing/main.cpp:10"
[debug]Breakpoint 1 at 0x100000b74: file main.cpp, line 11.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Reading symbols for shared libraries ++......................... done
[debug]Catchpoint 2 (throw)
[debug]Breakpoint 1, main () at main.cpp:11
[debug]/Users/phil/Desktop/guessing/main.cpp:11:197:beg:0x100000b74
[debug]>>>>>>cb_gdb:

At /Users/phil/Desktop/guessing/main.cpp:11

Navigation

[0] Message Index

[#] Next page

Go to full version