FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Harbour debugging under IIS
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
Harbour debugging under IIS
Posted: Wed Mar 26, 2025 12:31 PM

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?

Don Lowenstein
www.laapc.com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Harbour debugging under IIS
Posted: Wed Mar 26, 2025 01:40 PM
Compile with /b parameter or in your prg add
#pragma DEBUGINFO=ON
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
Re: Harbour debugging under IIS
Posted: Wed Mar 26, 2025 03:56 PM

How does this work?

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

Don Lowenstein
www.laapc.com
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
Re: Harbour debugging under IIS
Posted: Wed Mar 26, 2025 03:57 PM

usually if I have the debugger in the .exe file IIS hangs when it hits an altd()

Don Lowenstein
www.laapc.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Harbour debugging under IIS
Posted: Wed Mar 26, 2025 08:54 PM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 231
Joined: Fri Jul 20, 2012 01:49 AM
Re: Harbour debugging under IIS
Posted: Thu Mar 27, 2025 12:25 AM
What help me with CGI application is the debugString:

File hbd_debug.c
#include "windows.h"
#include "hbapi.h"

HB_FUNC( HB_DEBUG_STRING )
{
	OutputDebugString( hb_parcx( 1 ) );
}
then from your prg
hb_debug_string( "your string message" )
then from app "DebugView++.exe"
https://github.com/CobaltFusion/DebugViewPP/releases/download/v1.9.0.28/debugviewpp-1.9.0.28-win64.zip

I hope can be useful 8)
Regards,

Lailton Fernando Mariano

Continue the discussion