Page 1 of 1

Debugging

Posted: Sat Aug 18, 2007 9:38 am
by driessen
Hello,

I'm using FWH and xHarbour. I'm building my application with xHarbour Building. All versions from December 2006. It all works fine.

But I've read here so much about debugging.

Can someone tell me exactly how I do implement the debugger in my appliction ? What do I need to do ?

Thanks a lot in advance.

Posted: Sat Aug 18, 2007 10:30 am
by Antonio Linares
Michel,

You have to compile using /b and link debug.lib and GTWIN.lib instead of GTGUI.lib.

Please review samples\AltD.prg for a working sample.

Posted: Sat Aug 18, 2007 2:22 pm
by driessen
Antonio,

I tried to follow your instructions, unfortunately with no luck.

This is what I did :

Image

What did I do wrong ?

Thanks.

Posted: Sat Aug 18, 2007 3:45 pm
by Gale FORd
Do not add debug.lib to your project.
Make sure the .prg file you want to debug has been recompiled with the debug option checked or you can check the option "Force Clean Build" on options screen 1.

Then at the command prompt (Dos Window) type

xdebugw myapp.exe

You have to type the full name of your program along with the .exe.

You can also include ALTD(2) somewhere in your program, maybe close to the beginnig.

Posted: Sun Aug 19, 2007 12:11 am
by driessen
Gale,

Thanks a lot for your reaction.

I tried to follow your instructrions.

This results into the screen which is shown here :

Image

Except for the fact that I am asked to choose the starting PRG-file, nothing happens.

For a few seconds, this is shown in the console at the bottom :
Connecting to 127.0.0.1:10000...
Pushing on "Start" or "Step" doesn't result into any reaction.

What do I need to do now ?

Thanks a lot in advance.