Code::Blocks Forums

User forums => Help => Topic started by: jianlina on March 20, 2011, 03:52:08 pm

Title: When I double click the debug which is next toC/C++ ,the*. exe is flashed past!
Post 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!)
Title: Re: When I double click the debug which is next toC/C++ ,the*. exe is flashed past!
Post by: Jenna on March 20, 2011, 05:26:49 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" ?

Title: Re: When I double click the debug which is next toC/C++ ,theis flashed past!
Post by: jianlina on March 21, 2011, 02:46:02 am
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!
Title: Re: When I double click the debug which is next toC/C++ ,the*. exe is flashed past!
Post by: jianlina on March 22, 2011, 01:34:30 pm
 :(   Is there anyone to help me ?
  Thanks...
Title: Re: When I double click the debug which is next toC/C++ ,the*. exe is flashed past!
Post by: oBFusCATed on March 22, 2011, 01:57:23 pm
Have you tried to put a breakpoint at the line "return 1;" in the main function?
Title: Re: When I double click the debug which is next toC/C++ ,the*. exe is flashed past!
Post by: jianlina on March 22, 2011, 02:26:55 pm
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...
Title: Re: When I double click the debug which is next toC/C++ ,the*. exe is flashed past!
Post by: ptDev on March 22, 2011, 03:21:53 pm
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.
Title: Re: When I double click the debug which is next toC/C++ ,the*. exe is flashed past!
Post by: oBFusCATed on March 22, 2011, 03:38:15 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