News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

When I double click the debug which is next toC/C++ ,the*. exe is flashed past!

Started by jianlina, March 20, 2011, 03:52:08 PM

Previous topic - Next topic

jianlina

 :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!)

Jenna

Quote from: 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!)
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" ?


jianlina

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!

jianlina


oBFusCATed

Have you tried to put a breakpoint at the line "return 1;" in the main function?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

jianlina

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...

ptDev

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.

oBFusCATed

Quote from: jianlina on March 22, 2011, 02:26:55 PM
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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]