Code::Blocks Forums
User forums => Help => Topic started by: jianlina on March 20, 2011, 03:52:08 pm
-
:cry:When I double click the debug which is next to C/C++ ,the*. exe is flashed past quickly!
What should I do?
(My English is very poor.I wish you could understand me!)
-
:cry:When I double click the debug which is next to C/C++ ,the*. exe is flashed past quickly!
What should I do?
(My English is very poor.I wish you could understand me!)
Sorry I do not understand anything and your post misses a lot of information:
Which version of C::B do you use ?
Which OS are you on?
Which compiler do you use ?
Where do you double-click ?
What do you mean with "the debug" ?
What do you mean with "flash[...] past quickly" ?
-
I use Code::Blocks10.05 on windows7.
I use the C language to programme.
When I debug the code there is a question .
You can click "Debug→Start" on the menu of C::B. It build a *. exe file.
But the *. exe file flashes across quickly.
How can I make it stay?
Thank you very much!
-
:( Is there anyone to help me ?
Thanks...
-
Have you tried to put a breakpoint at the line "return 1;" in the main function?
-
Must I put a breakpoint at one of the line in the code? If I do not add any breakpoint , can I make the *.exe file stay like that I click "run" on the menu.
When I put a breakpoint at one of the line in the code , then I click 'debug→start' on the menu , the *.exe file appears and minimizes quickly and automatically . How can I solve the problem?
Thanks...
-
Does the compiled executable actually have debugging information? Check in the project build options whether you inadvertently checked "Strip all symbols information" (or something similar). If this option is checked at project level (rather than just at "Release" target level), you're trying to debug an executable that has no symbols table for gdb to track down.
-
Must I put a breakpoint at one of the line in the code?
You must... or you could execute getchar() before the "return 1;" line