Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: fox000002 on July 23, 2008, 07:37:19 am

Title: Can Watcom's debugger work with CodeBlocks
Post by: fox000002 on July 23, 2008, 07:37:19 am
I use Open Watcom C/C++ to build my project in CodeBlocks. It works well.

But the debugger doesn't work.

When using Open Watcom's debugger 'wd.exe', the error message is:

Code
 Invalid option 'nx'

When using gdb, it says 'no debugging symbols found'.

The problem is how to configure CodeBlocks to make the debugger work.

Any help will be appreciated.

Title: Re: Can Watcom's debugger work with CodeBlocks
Post by: thomas on July 23, 2008, 09:05:32 am
The debugger plugin in Code::Blocks was written for gdb, which is the reason you see errors when using a different debugger -- that debugger doesn't know the commands it is given.

You should have a look if you can get the Watcom compiler to produce symbols that work for gdb (funny thing that they don't... do you have symbols enabled at all?), so you can use gdb. This is by far easier than any other option.
If that isn't possible, you will probably want to use the Watcom debugger. For that, you will have to modify the debugger plugin. While you will probably be able to keep 99% of it and only need to change the command switches, it will still be some nasty work that I'd personally avoid if I could. I would rather switch compilers, to be honest.
Title: Re: Can Watcom's debugger work with CodeBlocks
Post by: severach on August 22, 2008, 02:12:18 am
Watcom has their own visual debugger that works just fine.