Uso de la consola del debugger

Uso de la consola del debugger

Postby Carlos Mora » Fri May 18, 2007 8:52 am

Estoy pasando una aplicacion Clipper/FW a 32 bits usando FW 7.04 y el xharbour bajado conjuntamente del servidor ftp de Fivetech.
Intento activar la consola del debugger, para lo que he añadido en el script de compilación la /b y añadí debug.lib como librería.
He añadido en el código un llamado a AltD(1) para habilitar el debugger y un llamado a AltD() para que lo active, pero al hacerlo la aplicación se detiene, como si no pudiese abrir la consola.

Como eso me falla, me voy a los ejemplos y compilo altd.prg con el resutlado idéntico: la aplicación queda congelada en el llamado a altd()

Hay forma de habilitar el uso del debugger?

Un saludo,

Carlos.
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Postby Antonio Linares » Fri May 18, 2007 9:16 am

Carlos,

Tienes que enlazar gtwin.lib en vez de gtgui.lib, para usar el debugger

Y no uses el flag -aa al llamar al ilink32.exe
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42151
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Carlos Mora » Fri May 18, 2007 9:36 am

Hola Antonio,
gracias por la pronta respuesta.
Uso -ap en lugar de -aa o directamente lo quito?

voy a probar nuevamente con gtwin. La primera vez que lo probé me aparecieron muchos externals no resuletos en la compilacion, pero pruebo de nuevo.

Ya te cuento como me fue.

Carlos.
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Postby Antonio Linares » Fri May 18, 2007 9:45 am

No uses -aa ni nada más en su lugar
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42151
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Carlos Mora » Fri May 18, 2007 10:03 am

Antonio,

Code: Select all  Expand view  RUN
MAKE Version 5.0  Copyright (c) 1987, 1997 Borland International
   c:\bcc55\bin\ilink32.exe -Gn -Tpe -s -Iobj -x @make.tmp
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_hb_gt_Init' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetScreenHeight' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetScreenWidth' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Exit' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_ExtendedKeySupport' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_ReadKey' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_AdjustPos' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Box' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_VertLine' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_HorizLine' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_PreExt' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_PostExt' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetPos' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetCursorStyle' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_IsColor' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_RectSize' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Replicate' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetBlink' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetBlink' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetMode' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Puts' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Scroll' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Tone' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Version' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_DispCount' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_DispEnd' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Suspend' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Resume' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Row' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Col' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_DispBegin' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetClipboard' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetClipboardSize' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_ProcessMessages' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetClipboard' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetText' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_PutText' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetAttribute' referenced from C:\XHARBOURFW\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_mouse_IsPresent' referenced from C:\XHARBOURFW\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_Show' referenced from C:\XHARBOURFW\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_Hide' referenced from C:\XHARBOURFW\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_Col' referenced from C:\XHARBOURFW\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_Row' referenced from C:\XHARBOURFW\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_SetPos' referenced from C:\XHARBOURFW\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_IsButtonPressed' referenced from C:\XHARBOURFW\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_CountButton' referenced from C:\XHARBOURFW\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_SetBounds' referenced from C:\XHARBOURFW\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_GetBounds' referenced from C:\XHARBOURFW\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_gt_OutStd' referenced from C:\XHARBOURFW\LIB\RTL.LIB|console
Error: Unresolved external '_hb_gt_OutErr' referenced from C:\XHARBOURFW\LIB\RTL.LIB|console
Error: Unresolved external '_hb_gt_info' referenced from C:\XHARBOURFW\LIB\RTL.LIB|maxrow

** error 2 ** deleting .\APGRA.exe


enlazando con
Code: Select all  Expand view  RUN
$(BORLANDC_EXE_DIR)\ilink32.exe -Gn -Tpe -s -I$(APP_OBJ_DIR)
c:\bcc55\lib\c0w32.obj +
obj\apgra.obj obj\nomivis.obj obj\imprnomi.obj obj\impre4.obj obj\contrat5.obj obj\rrhh.obj obj\calenda.obj obj\secur.obj obj\easyprev.obj obj\pdfprint.obj obj\vistas.obj obj\interfac.obj obj\tsbrowse.obj obj\TFileXLS.obj obj\XLSError.obj obj\XLSFunc.obj  , +
.\APGRA.exe, +
.\APGRA.map, +
c:\fwh704\lib\fiveHx.lib +
c:\fwh704\lib\fiveHC.lib +
c:\fwh704\lib\SBROWSEX.lib +
c:\xharbourFW\lib\rtl.lib +
c:\xharbourFW\lib\vm.lib +
c:\xharbourFW\lib\gtwin.lib +
c:\xharbourFW\lib\lang.lib +
c:\xharbourFW\lib\macro.lib +
c:\xharbourFW\lib\rdd.lib +
zlib1.lib ziparchive.lib +
c:\xharbourFW\lib\dbfntx.lib +
c:\xharbourFW\lib\dbfcdx.lib +
c:\xharbourFW\lib\debug.lib +
c:\xharbourFW\lib\common.lib +
c:\xharbourFW\lib\pp.lib +
c:\xharbourFW\lib\hbsix.lib +
c:\xharbourFW\lib\dbffpt.lib +
c:\xharbourFW\lib\rddads.lib +
c:\xharbourFW\lib\ace32.lib +
c:\bcc55\lib\cw32.lib +
c:\bcc55\lib\import32.lib +
c:\bcc55\lib\ole2w32.lib, +


Podrías enviarme el gtwin.lib para el xharbour de la 704? el que uso es que había en rapidshare referida por un post acá en el foro, y probablemente sea ese el problema.


[/code]
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Postby Antonio Linares » Fri May 18, 2007 10:34 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42151
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Carlos Mora » Fri May 18, 2007 10:43 am

Antonio,

Creo que me enviaste la de MSVC y necesito la de BCC
Code: Select all  Expand view  RUN
   c:\bcc55\bin\ilink32.exe -Gn -Tpe -s -Iobj -x @make.tmp
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: 'C:\XHARBOURFW\LIB\GTWIN.LIB' contains invalid OMF record, type 0x21 (possibly COFF)



gracias por tu atención,

Carlos.
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Postby Antonio Linares » Fri May 18, 2007 10:55 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42151
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Carlos Mora » Fri May 18, 2007 11:31 am

Por fin funcionó! De todas maneras no toma los paths al inicio hasta la primera llamada a función, como si el prgname no estuviese configurado al inicio.

Tampoco se ejecuta hasta una linea determinada ni respeta breakpoint puestos con F9. Ya seguiremos probando a ver que novedades hay.

Muchas gracias por la ayuda,

Carlos.
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Postby Antonio Linares » Fri May 18, 2007 2:27 pm

Carlos,

Esos errores tendrás que reportarlos en la lista de desarrollo de xharbour, para que puedan ayudarte, ya que es algo propio de xharbour. Gracias,
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42151
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 61 guests