User forums > Using Code::Blocks
How do you use the debugger?
nehpilim:
Hi guys.
How do you work the debugger? The menu for it is mostly grayed out, including the "start" button.... I have GDB installed, and have set the compiler to use -g...
Thanks
mandrav:
Version? Revision? Steps to reproduce?
Read this...
nehpilim:
This isn't a PR, I'm just not sure how to use the debugger...what steps does one normally take to get it going? With MS Visual C++ I just hit start debugging, here it's all greyed out and I'm not sure why...
This is from svn as of two days ago.
mandrav:
--- Quote ---This isn't a PR, I'm just not sure how to use the debugger...what steps does one normally take to get it going? With MS Visual C++ I just hit start debugging, here it's all greyed out and I'm not sure why...
--- End quote ---
It works the same way.
But if you say it's all greyed out, you didn't read the link I gave you.
Let me try again, giving some emphasis this time:
Please, read this link :)...
We 're not asking for the info mentioned in that link just for the heck of it. It will provide us crucial information so that we can give you an answer that might help you...
nehpilim:
Alright, it turns out I have to create a project just to use the debugge, not just a simple source file....well, I suppose thats better than MSVC++, which forces you to make a project just to COMPILE anything...
Well, I have a new issue. The debugger is now available, but doesn't work:
here is the output from it:
Compiling: done
Adding source dir: /home/paul/cpp/play/
Adding file: play
Starting debugger: done
Invalid debugger script: 'gdb_types.script'
Setting breakpoints
Debugger name and version: GNU gdb 6.4
No source file named /home/paul/cpp/play/main.cpp.
Breakpoint 1 (/home/paul/cpp/play/main.cpp:24) pending.
No source file named /home/paul/cpp/play/main.cpp.
Breakpoint 2 (/home/paul/cpp/play/main.cpp:23) pending.
Program exited normally.
Debugger finished with status 0
It can't find the file? It certainly exists, and that's the right location, why does it say No source file named...? This is the source from 10 feb. I will compile today's SVN and see if that helps, I will report back because on the 10th I know some debugging fixes went in...
Navigation
[0] Message Index
[#] Next page
Go to full version