User forums > Using Code::Blocks
Debugging or Compiling and running
J-C:
--- Code: ---Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\DarkQ\DarkQ\
Adding source dir: C:\DarkQ\DarkQ\
Adding file: bin\Debug\DarkQ.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.8
Child process PID: 7100
Program exited with code 01.
Debugger finished with status 0
--- End code ---
seb_seb0:
--- Quote from: J-C on May 02, 2011, 09:48:25 pm ---Program exited with code 01.
Debugger finished with status 0
--- End quote ---
apparently, your program is exiting with an error code. Have you tried to set a breakpoint at the 1st instruction of the program ?
J-C:
I found out why... it exits when it is loading files? why is that? you can't load files while debugging?
oBFusCATed:
You have problems with the paths probably.
You're assuming that the working this is <project>/bin/Debug, but when started from C::B the default is <project>.
See project properties for details.
For debugging with C::B read this: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
J-C:
you were absolutely right sir, *face palm* it was the path, man I feel like a retard now... thanks a lot man :D, But it doesn't say anything on how to change the path?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version