User forums > Help
How to use gdb in C::B?
selles:
Hello, I am new in Free IDEs as Code::Blocks and Dev-C++..but, sincerely, C::B is fantastic.. :shock:
I have not idea how to use debug and the watches window..I already tried :?
I think that the gdb is already installed with C::B, i am right?
so, I also checked the field "Produce Debugging Symbols " in compiler/compiler Options, is only this?
in "Add watch", I must simply put the name of the variable, or others parameters are required?
thank you and Congratulations.. :P
F. Selles
mandrav:
After you 've built your project, place any breakpoints you like in your code and start it by running Debug->Debug (F8).
When a breakpoint hits, look at the "Watches" tab ;)
selles:
Oh, very simply!! 8)
and the "Add Watches" ? for what he does serve then?
Thank you , :)
mandrav:
By default, function arguments and local variables are watched (you can change this behaviour in debugger options).
Use "Add watch" to add watches for other variables.
selles:
Thanks Mandrav, :D
but, some variables and definitions the Debugger do not recognized for some reason, see the following errors:
Selecting target: default
Compiling: done
Starting debugger: done
Adding source dir: C:\irrlicht-0.10.0\Selles_app\
Adding source dir: C:\irrlicht-0.10.0\Selles_app\
Adding source dir: C:\irrlicht-0.10.0\Selles_app\
Adding source dir: C:\Documents and Settings\FSelles\Desktop\w32\
Adding source dir: C:\Documents and Settings\FSelles\Desktop\consoleApp2\
Adding source dir: C:\Documents and Settings\FSelles\Desktop\consoleApp2\
Adding source dir: C:\Documents and Settings\FSelles\Desktop\consoleApp2\
Adding file: selles_console.exe
Changing directory to: "../../Documents and Settings/FSelles/Desktop/consoleApp2"
error
"../../Documents and Settings/FSelles/Desktop/consoleApp2": Invalid argument.
Program received signal (SIGSEGV)
Segmentation fault
Attempt to use a type name as an expression
Program received signal (SIGSEGV)
Segmentation fault
exited 128
Debugger finished with status 0
"Attempt to use a type name as an expression" how do I configure that? ?
Thank you,
Selles
Navigation
[0] Message Index
[#] Next page
Go to full version