User forums > Help
problem with debugging
delta1994:
I have installed the code::blocks with "codeblocks-10.05mingw-setup.exe" downloaded directly from the official website,and when I try to debug my problem,I set a breakpoint at the first line of the main function,which is a function for data-inputting from keyboard.After I clicked the "debug/continue" bottom,the program did not pause at the breakpoint.Instead,it directly asked me to input the data.I have chosen the "debug" model,not the "release" model,and I'm frustrated with this problem.Who can offer me a solution!
MortenMacFly:
post the full build log and the debug log.
BTW: You can also just try a nightly. 10/05 is rather old.
delta1994:
--- Quote from: MortenMacFly on October 28, 2012, 06:55:47 am ---post the full build log and the debug log.
BTW: You can also just try a nightly. 10/05 is rather old.
--- End quote ---
build log is as follows.
-------------- Clean: Debug in heapsort ---------------
Cleaned "heapsort - Debug"
-------------- Build: Debug in heapsort ---------------
mingw32-g++.exe -Wall -fexceptions -g -O3 -g -c D:\programs\heapsort\main.cpp -o obj\Debug\main.o
mingw32-g++.exe -o bin\Debug\heapsort.exe obj\Debug\main.o
Output size is 579.19 KB
Process terminated with status 0 (0 minutes, 10 seconds)
0 errors, 0 warnings
debugging log is as follows.
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: D:\programs\heapsort\
Adding source dir: D:\programs\heapsort\
Adding file: bin\Debug\heapsort.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 5.2.1
Program exited normally.
Debugger finished with status 0
(Note:Although I have set a breakpoint,the program did not pause there.)
I want to try the new version,but our teacher insists that we use 10/05.
MortenMacFly:
--- Quote from: delta1994 on October 28, 2012, 07:24:25 am ---mingw32-g++.exe -Wall -fexceptions -g -O3 -g -c D:\programs\heapsort\main.cpp -o obj\Debug\main.o
--- End quote ---
Do not mix optimisation with debug flags and try again (don't forget to re-build the project)... Post the log again here...
delta1994:
--- Quote from: MortenMacFly on October 28, 2012, 08:57:00 am ---
--- Quote from: delta1994 on October 28, 2012, 07:24:25 am ---mingw32-g++.exe -Wall -fexceptions -g -O3 -g -c D:\programs\heapsort\main.cpp -o obj\Debug\main.o
--- End quote ---
Do not mix optimisation with debug flags and try again (don't forget to re-build the project)... Post the log again here...
--- End quote ---
I also have set the breakpoints(not these things you quoted),and this is the result of re_build.
Navigation
[0] Message Index
[#] Next page
Go to full version