Sign in to follow this  
tonymontana

Does Anyone know a good debugger?

Recommended Posts

tonymontana    100
i have started to use free compilers as DevC++/CodeBlocks/MinGw develeoper studio.i've found them nice(more complicated than i've thought).But i have a serious matter with them.İ am using these compilers with Qt(a 3. party Gui complicated qui library). My Matter is their debugger is not working well.They are not moving step by step (although there is an button for that).They are only stopping on breaks(sometimes:) ) .İs there a good debugger that i can integrate with DevC++/ Code Blocks/minGW?

Share this post


Link to post
Share on other sites
FlowingOoze    236
Since the compiler you're using is gcc, I'd say your choice is limited to gdb (which is what you're using under the hood anyway). You could simply try running gdb from the command line. Not quite as elegant, but just as useful, after you've learned a few basic commands, like 'print' and 'frame' and 'break'.

Share this post


Link to post
Share on other sites
Kwizatz    1392
The problem is that the MinGW port of gdb is quite unstable, personally, I just switch to Linux and debug there, you may want to Install Cygwin's gdb and DDD and use that instead of the Mingw gdb port.

Edit: Now that I think about it, you should be able to replace your MinGW gdb with the Cygwin one, you would just have to place a copy of cygwin1.dll on your bin directory, the debugger on Dev-C++ would then maybe break and step properly.

Share this post


Link to post
Share on other sites
FlowingOoze    236
I've had problems with MingW myself (though not with the debugger). I'd recommend switching to cygwin and using -mno-cygwin if you don't want to link to cygwin1.dll. It's worth the hassle you might have to deal with when using/compiling third party libraries. Use cygcheck to check that you're not linking to cygwin1.dll.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this