User forums > Using Code::Blocks
Problem with debug
InddZen:
Hi all,
I'm working under windows using the 11th march build.
I've some problems while trying to debug my project (console application in c++) using "run to cursor" or a breakpoint.
First, it seems that the debugger don't stop where I want.
Second it gives me the following message, knowing that my program run usually without problem, specially with the function cited in the message "operator *()()":
--- Code: ---Building to ensure sources are up-to-date
Build succeeded
Selecting target: default
Adding source dir: D:\cfdproject\
Adding source dir: D:\cfdproject\
Adding file: cfdproject.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.3
Child process PID: 2964
Program received signal SIGSEGV, Segmentation fault.
In operator* () ()
Debugger finished with status 0
--- End code ---
So does anyone have an idea about this problem????
And thanx in advance...
Pecan:
--- Quote from: InddZen on March 13, 2007, 10:00:18 pm ---Hi all,
I'm working under windows using the 11th march build.
I've some problems while trying to debug my project (console application in c++) using "run to cursor" or a breakpoint.
First, it seems that the debugger don't stop where I want.
Second it gives me the following message, knowing that my program run usually without problem, specially with the function cited in the message "operator *()()":
--- Code: ---Building to ensure sources are up-to-date
Build succeeded
Selecting target: default
Adding source dir: D:\cfdproject\
Adding source dir: D:\cfdproject\
Adding file: cfdproject.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.3
Child process PID: 2964
Program received signal SIGSEGV, Segmentation fault.
In operator* () ()
Debugger finished with status 0
--- End code ---
So does anyone have an idea about this problem????
And thanx in advance...
--- End quote ---
The message "(no debugging symbols found) " means that you compiled your project without turning on the -g flag to create debugging data.
Go to project settings and check the "produce debugging symbols" option.
InddZen:
Thanx, I didn't get any message or error after setting the option as u told me...
But the debugger still don't want to stop in the cursor or in the breakpoint level :?
It's like a normal execution.
Pecan:
Create a minimal source that causes the problem
Set:
//-- Full Compile Logging --
"Settings" -> "Compiler and Debugger"
"Global Compiler Setting"
"Other Settings"
"compiler logging:" set to "Full Command Line"
Paste the compiler output here, and paste the minimal program source with step by step instructions on how to re-create the problem.
InddZen:
Thanks for fast replies.
But maybe mine wasn't enough clear...
My program is working, neither bugs nor problems, but instead of printing in the screen all the datas I would like to control I prefer to run debug with a run to cursor and watch step by step the evolution.
That's what I was used to do using VC++ few years ago.
But it seems that it doesn't work. Maybe I need to select other settings but I don't know where or how.
Navigation
[0] Message Index
[#] Next page
Go to full version