Page 1 of 1

Harbour debugging under IIS

Posted: Wed Mar 26, 2025 12:31 pm
by don lowenstein
I have a cgi process with a Harbour executable.

Is there a way to have access to a debugger for the Harbour exe when running under IIS?

Re: Harbour debugging under IIS

Posted: Wed Mar 26, 2025 1:40 pm
by cnavarro
Compile with /b parameter or in your prg add
#pragma DEBUGINFO=ON

Re: Harbour debugging under IIS

Posted: Wed Mar 26, 2025 3:56 pm
by don lowenstein
How does this work?

Does the debugger appear when it hits an altd()?

Re: Harbour debugging under IIS

Posted: Wed Mar 26, 2025 3:57 pm
by don lowenstein
usually if I have the debugger in the .exe file IIS hangs when it hits an altd()

Re: Harbour debugging under IIS

Posted: Wed Mar 26, 2025 8:54 pm
by Antonio Linares
Dear Don,

a CGI app can not use the GUI interface so you can only generate a log file (ascii file) with some usefull info for debugging

Afaik, there is no way to use the debugger from it

Re: Harbour debugging under IIS

Posted: Thu Mar 27, 2025 12:25 am
by Lailton
What help me with CGI application is the debugString:

File hbd_debug.c

Code: Select all | Expand

#include "windows.h"
#include "hbapi.h"

HB_FUNC( HB_DEBUG_STRING )
{
	OutputDebugString( hb_parcx( 1 ) );
}
then from your prg

Code: Select all | Expand

hb_debug_string( "your string message" )
then from app "DebugView++.exe"
https://github.com/CobaltFusion/DebugVi ... -win64.zip

I hope can be useful 8)