2003-05-20 17:10:06 UTC
Dev C++ Debugger
Hi,
I recently managed how to get debugging to work in Dev-C++, but I noticed 2 problems:
1. I have to manually enable 'create debug info' in the linker settings for debugging. Perhaps it should be enabled automatically (or by asking the user) when the 'debug'-button is pressed the first time.
2. If I set breakpoints, only the ones in my 'int main'-
function are reagrded and processed, but if I set them for example in the constructor of some of my classes the program never stops there. Also Dev-C++ says 'the .exe file is older than the source-files, do you want to recompile it?', even if I make a full recompile and then change nothing.
If somebody has an idea how to fix #2, it would be very cool, since I need debugging very much (as a beginner :) )
I recently managed how to get debugging to work in Dev-C++, but I noticed 2 problems:
1. I have to manually enable 'create debug info' in the linker settings for debugging. Perhaps it should be enabled automatically (or by asking the user) when the 'debug'-button is pressed the first time.
2. If I set breakpoints, only the ones in my 'int main'-
function are reagrded and processed, but if I set them for example in the constructor of some of my classes the program never stops there. Also Dev-C++ says 'the .exe file is older than the source-files, do you want to recompile it?', even if I make a full recompile and then change nothing.
If somebody has an idea how to fix #2, it would be very cool, since I need debugging very much (as a beginner :) )
Dev C++ Debug
To set a breakpoint on a line, just click on the gutter (the gray band on the left), or press Ctrl-F5. Now you are ready to launch the debugger, by pressing F8 or clicking the debug button. If everything goes well, the program will start, and then stop at the first breakpoint. Then you can step through the code, entering function calls,. Mar 21, 2012 How to use dev c, first run and first Program in dev c (Learn in Urdu) Virtual Community,Recommended Software for CS201- introduction to Programming by Dr. Understanding the Run and Debug shortcuts. I'm new to Dev-C. I was looking for a tools for my new project and Dev-C as IDE with gtkmm as GUI toolkit seems to be the best choice for me, but i have 2 problems. Most important problem is debugging. I can't gebug program with the internal debugger at all. Debugging seems to work perfectly fine until I add anything related to gtkmm to the. Then click on Debug or press F8. You will notice the debug window at the bottom of Dev-C. Now click on Add Watch and enter the variable name you want to watch. Do this for each variable. You may need to click on Debug again to have Next Step, Step Info clickable. Learn how to debug your code using Dev C.