Code::Blocks Forums
User forums => Help => Topic started by: Paul C. Anagnostopoulos on September 01, 2008, 03:14:58 am
-
Folks,
I've just installed Code::Blocks 8.02 and I'm quite enjoying it. I have two problems that searching here did not solve.
1. I build and run my little console program with F9. The console comes up and the output looks fine. Then I change one character in the output and press F9 again. I still see the original text. Then I press F9 a second time and I see the new text. Doing a Save or Save All after the text change does not help. Doing a separate Build and then Run after the text change does not help either. I must have a misunderstanding about when Build decides to recompile files.
2. I press F8 to run the debugger (GDB). The debugger log displays:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Release
Adding source dir: C:\Freefall\Freefall\
Adding source dir: C:\Freefall\
Adding file: bin\Release\Freefall.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
(no debugging symbols found)
Debugger name and version: GNU gdb 6.7.50.20071127
Child process PID: 34808
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Program exited normally.
Debugger finished with status 0
Then the console flashes the output and terminates. No interactive debugger starts up. Using Step Into does the same thing.
I have the -g compiler flag checked, so I don't understand "no debugging symbols found."
Any help would be appreciated.
~~ Paul
-
I have the -g compiler flag checked, so I don't understand "no debugging symbols found."
Did you change your build target to debug (dropdown-list in the compiler toolbar).
-
I have the -g compiler flag checked, so I don't understand "no debugging symbols found."
Notice: When you change compiler options like that you need to rebuild your complete project (target) to work.
-
I have the -g compiler flag checked, so I don't understand "no debugging symbols found."
Did you change your build target to debug (dropdown-list in the compiler toolbar).
I have only a Release target.
~~ Paul
-
I have the -g compiler flag checked, so I don't understand "no debugging symbols found."
Notice: When you change compiler options like that you need to rebuild your complete project (target) to work.
I've rebuilt it numerous times. All my original issues remain.
~~ Paul
-
Okay, one problem solved. There were no debugging symbols because the project options included -g, but the build options included -s. I didn't even know there was hierarchy of options, so I'm not sure how I checked -s in the build options.
Once there are symbols, then the debugger is willing to do its thing.
~~ Paul