User forums > Help

issue with the debugger

(1/2) > >>

CodeLemming:
Hello all!

I'm relatively new to code::blocks and C++ programming and I'm running into a problem with the debugger; it doesn't seem to work. Now, it might be working, but I'm not entirely sure seeing as what happens when I run the debug doesn't match up with what I see in youtube vids tutorialing the code::blocks debugger. Everything seems to compile correctly, but the debugger ignores breakpoints and no windows of any kind pop up. I've gone through most of the threads here that have anything to do with debugger problems and none of them help me.

I'm working with Windows 8 , code::blocks 13.12 , [-g] is checked (on) , [-s] is unchecked (off) , MinGW GDB version is 7.5 , the full debug log is on and I will include it if someone can tell me how to use the 'code' er.. tagline?  Saw it mentioned in one of the posts, but I lost it in my despair of fruitless searching.

stahta01:
The # sign above creates [ code ] and [ /code ] markers without any space in them.

That is how to do code sections like the debugger log.

Tim S.

CodeLemming:
Thank you stahta01.

so here's the debugger log then.

--- Code: ---Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\CPP_Programs\projects\general_game_setup\
Adding source dir: C:\CPP_Programs\projects\general_game_setup\
Adding file: C:\CPP_Programs\projects\general_game_setup\bin\Debug\general game setup.exe
Changing directory to: C:/CPP_Programs/projects/general_game_setup/.

[debug]Command-line: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/CPP_PR~1/projects/GENERA~1/bin/Debug/GENERA~2.EXE
[debug]Working dir : C:\CPP_Programs\projects\general_game_setup

Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/CPP_PR~1/projects/GENERA~1/bin/Debug/GENERA~2.EXE
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 from C:\CPP_PR~1\projects\GENERA~1\bin\Debug\GENERA~2.EXE...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.5
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "i686-pc-mingw32".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) 7.5

[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 new-console on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source C:\Program Files (x86)\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory C:/CPP_Programs/projects/general_game_setup/
[debug]Source directories searched: C:/CPP_Programs/projects/general_game_setup;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: C:\CPP_PR~1\projects\GENERA~1\bin\Debug\GENERA~2.EXE
[debug]Error creating process C:\CPP_PR~1\projects\GENERA~1\bin\Debug\GENERA~2.EXE, (error 740).
[debug]>>>>>>cb_gdb:

Error creating process C:\CPP_PR~1\projects\GENERA~1\bin\Debug\GENERA~2.EXE, (error 740).

[debug]> quit

Debugger finished with status 0

--- End code ---

any suggestions?

oBFusCATed:
GDB failed to start your program.
Do you happen to use an antivirus software?

Jenna:
Normally "error 740" means the process you try to run needs admin rights.

It might work from a folder below your user-directory or if you start C::B as administrator or if you turn UAC off (if it still exists in win8).

Navigation

[0] Message Index

[#] Next page

Go to full version