Author Topic: new install Debug does not stop on the hello world  (Read 2942 times)

Offline bigsebast

  • Single posting newcomer
  • *
  • Posts: 2
new install Debug does not stop on the hello world
« on: November 13, 2012, 07:06:50 am »
Hi guys !!

it make 1 week a use code block for school. So i am really new to thos kind of application.

So i have a fresh windows 7 64 bit professionnal install with code block 10.05 http://www.codeblocks.org/downloads/binaries. I did download the codeblocks-10.05mingw-setup.exe.

So i was working on a projet and i wanned to debug so i put a breakpoint and started it... Nothing happen it never stop on my breakpoint. i recreated a new projet and just for fun try to test thedebug in the hello world so i put a breakpoint on the cout... i run the debug and i only see the screen of the console flash...


i have seen in some post you guys asking for those. I also have set by default the GNU GCC Compiler
-------------- Build: Debug in test ---------------

Compiling: main.cpp
Linking console executable: bin\Debug\test.exe
Output size is 913,10 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
 


Debugger info
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\Users\Sébastien\Desktop\test\
Adding source dir: C:\Users\Sébastien\Desktop\test\
Adding file: bin\Debug\test.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
Warning: C:/Users/SĂ©bastien/Desktop/test: No such file or directory.
Child process PID: 4752
Program exited normally.
Debugger finished with status 0


Thanks for all the help guys !



Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5253
Re: new install Debug does not stop on the hello world
« Reply #1 on: November 13, 2012, 07:37:08 am »
it seems it has problems with the special characters in your name.
I think our debug guru will have some tips for you.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5242
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: new install Debug does not stop on the hello world
« Reply #2 on: November 13, 2012, 09:02:18 am »
install with code block 10.05 http://www.codeblocks.org/downloads/binaries. I did download the codeblocks-10.05mingw-setup.exe.
Please use a more recent C::B nightly build version, can be download here:Nightly builds

Quote
Debugger name and version: GNU gdb 6.8
Warning: C:/Users/SĂ©bastien/Desktop/test: No such file or directory.
Use a more recent mingw/Gcc also, like: TDM-GCC, which contains more recent gdb.

BTW: please do not use non-English characters in your file path, I believe gdb can not handle those path/files correctly.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline bigsebast

  • Single posting newcomer
  • *
  • Posts: 2
Re: new install Debug does not stop on the hello world
« Reply #3 on: November 13, 2012, 06:27:37 pm »
Thanks I have create a new user without the "é" in my name and it work with the version i have.

If the issue comes back i will attemps what you told me with nightly build version.

thanks again !!