News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Can Watcom's debugger work with CodeBlocks

Started by fox000002, July 23, 2008, 07:37:19 AM

Previous topic - Next topic

fox000002

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:


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.


thomas

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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

severach

Watcom has their own visual debugger that works just fine.