Rv: Debugger GUI

215 views
Skip to first unread message

DaNiEl MaXiMiLiAnO

unread,
Mar 13, 2012, 8:57:28 PM3/13/12
to harbou...@googlegroups.com

 
Hola usuarios de Harbour:
                                          en Turbo Pascal usaba mucho
el depurador y me facilitaba la puesta a punto de programa que creaba.
ahora me costo mucho utilizar el depurador de harbour, le falta muchas
cosas que no estan implementadas, eh visto que xHarbour tiene un
xDebugger visual pero es pago , hay alguna otra herramienta igual para
harbour ??? o habria la posibilidad de hacer uno igual???

Translate Google :
Hello Harbour users:
                                            Turbo Pascal was widely
used in the debugger and I facilitated the development of program it
created.
I now use cost much cleaner harbor, it lacks many things that are not
implemented, eh seen xHarbour has a visual xDebugger payment but there
are some other tool same for harbour?? or would have the ability to
make one like it??


Massimo Belgrano

unread,
Mar 14, 2012, 2:30:07 AM3/14/12
to harbou...@googlegroups.com
Wich feature are missing & Important in harbour debugger?


--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users



--
Massimo Belgrano

DaNiEl MaXiMiLiAnO

unread,
Mar 14, 2012, 6:35:40 AM3/14/12
to harbou...@googlegroups.com
Hi Massimo :
Hoy trabajo hasta la noche, mañana voy a tratar de dejar un video del comportamiento del debugger en Pascal y otro sobre el debugger en harbour.

gracias por tu tiempo y atencion.

Translate Google:
Today I work till night, tomorrow I will try to put a video of the behavior of the debugger in Pascal and another on the debugger in harbor.

Thanks for your time and attention.
 
Saludos
                DaNIEl MaXiMiLiAnO


De: Massimo Belgrano <mbel...@deltain.it>
Para: harbou...@googlegroups.com
Enviado: miércoles, 14 de marzo de 2012 3:30
Asunto: Re: [harbour-users] Rv: Debugger GUI

DaNiEl MaXiMiLiAnO

unread,
Mar 15, 2012, 10:14:48 AM3/15/12
to harbou...@googlegroups.com
Hola a nuevo:
esta es una muestra del depurador de Free Pascal, esta basado en GDB
http://www.gnu.org/software/gdb/
en FreePascal o Turbo pascal se abre una ventana conteniendo el source de la aplicacion en modo edicion, esto permite la modificacion de este source.
si uno quiere aplicar un punto de ruptura con 'CTRL+F8' se aplica y queda iluminado en rojo la linea de ruptura.
los puntos de ruptura son manejados en una lista en la cual se se puede agregar eligiendo desde un combo de posibilidades, todo ello sin afectar el source code.
evaluar una variable es muy simple, en la caja se añade la expresion de la cual se quiere saber.
estos 2 debugger son muy iguales a lo que refiere teclas de funciones
dejo imagenes de el comportamiento de estos debugger.
puede descargar Freepascal y comprobar el funcionamiento del debugger.

Google Translate:

Hello again:
This is a sample of the Free Pascal debugger, is based on GDB
http://www.gnu.org/software/gdb/
Turbo Pascal, FreePascal, or opens a window containing the source of the application in edit mode, this allows the modification of this source.
if you want to apply a breaking point with 'CTRL + F8' applies and is lit red line rupture.
breakpoints are handled in a list which can be added by selecting from a combo of possibilities, all without affecting the source code.
evaluate a variable is very simple, in the box will add the expression of which is to know.
 these 2 debugger are very equal to what concerns function keys.
left images of the behavior of these debugger.
Freepascal can download and check the operation of the debugger.


URL: http://www.freepascal.org/

Saludos/Regards
                DaNIEl MaXiMiLiAnO


De: Massimo Belgrano <mbel...@deltain.it>
Para: harbou...@googlegroups.com
Enviado: miércoles, 14 de marzo de 2012 3:30
Asunto: Re: [harbour-users] Rv: Debugger GUI

Chmg.3.0.40SAMPLESACTIVEX.1demo1_2.png
Free Pascal_2012-03-15_10-31-35.png
Free Pascal_2012-03-15_10-37-00.png

Massimo Belgrano

unread,
Mar 15, 2012, 11:08:18 AM3/15/12
to harbou...@googlegroups.com
I have same difficult undestrand what is missing
I suggest write same sample / Prg/Turbopascal for learn the importance of debugger

Evaluate expression Is done also from harbour debugger from watch point and via command line
breakpoints are handled also from harbour debugger (i not albe undestrand advantage of ...by selecting from a combo of possibilities, all .

What are need feature for a debugger (debugger save my life) ?

Basically a debugger is usefull to debug a routune that will be called in many times also whitout learn the program structure
The basic tool need are :
Breakpoint Set one or more row where program goes in degug mode
WhatchPoint View value of one or more variable
Tracepoint Set a expression when you want go in debug mode programm "a=100"
In debug mode
Execute Step by step
Execute out of visual mode (if return if program flow from breakpoint or expression on tracepoing are true(

For example
I have resolved a problem using a whatch point for "a<>int(a)"
Func Myroutine
for a=1 =10
myfunc()
next a
func myfunc
a = 100.5
return .t.


edit mode from debugger will be possible from hbide if debugger evolve in a qt version
Pritpal in past have evalutated this possibility
pritpal if you read ...strike any key



--
Massimo Belgrano

DaNiEl MaXiMiLiAnO

unread,
Mar 15, 2012, 1:04:28 PM3/15/12
to harbou...@googlegroups.com
Massimo say:
''I have same difficult undestrand what is missing"
 
si mira las imagenes vera en el menu  opciones depurador, add Watch y Watch list, Breakpoint and breakpoint list, Evaluate :
en el menu Search, Goto Line Number:
en el menu RUN: Goto Cursor, Step Over, Trace into.

Harbour debugger muchas de las teclas de funciones no respetan su funcionamiento.

el debugger de harbour abre el source code en modo lectura, imposibilitando le escritura del codigo, esto es salir del depurador regresar al ide, modificar el codigo fuente y llamar al depurador de nuevo.
el IDE de Roberto Lopez (HMG.3.0.40) al compilar un fuente si este contiene un error te permite corregir el mismo (error) y continuar la compilacion.

en Harbour Debugger contiene "Monitor" con todas las opciones de variables y eso esta muy bueno para el seguimiento de un error.

Translate Google :

if you look at the pictures in the menu options will see debugger, add Watch and Watch list, and Breakpoint breakpoint list, Evaluate:
in the Search menu, Goto Line Number:
in the RUN menu: Goto Cursor, Step Over, Trace into.

Harbour debugger many of the function keys do not respect their operation.

harbor the debugger opens the source code for reading, writing code it impossible, ie return to exit the debugger ide, modify the source code debugger and call again.
IDE Roberto Lopez (HMG.3.0.40) to compile a source if it contains an error you can correct it (error) and continue the compilation.

Harbour Debugger contains "Monitor" with all the options and variables that is very good for tracking error.


Massimo Say:

"I suggest write same sample / Prg/Turbopascal for learn the importance of debugger"

descargando Freepascal y ejecutandolo abrimos el ejemplo de la ruta: C:\FPC\2.4.4\examples\cdrom\showcds.pp
todo listo para usar las opciones del menu Debug.
translate google:
Freepascal downloading and running it open the example of the route: C:\FPC\2.4.4\examples\cdrom\showcds.pp
ready to use the Debug menu options.
Saludos/Regards
                DaNIEl MaXiMiLiAnO


De: Massimo Belgrano <mbel...@deltain.it>
Para: harbou...@googlegroups.com
Enviado: jueves, 15 de marzo de 2012 12:08

Massimo Belgrano

unread,
Mar 15, 2012, 1:29:06 PM3/15/12
to harbou...@googlegroups.com

>Harbour debugger many of the function keys do not respect their operation. 

1) Please explain me what keys not respect the funtion
I use from menu so for me not clean


2) Other that in integration with an editor wich feature is missing in harbour?
Integration is possible only with a specific editor like hbide





--
Massimo Belgrano

DaNiEl MaXiMiLiAnO

unread,
Mar 15, 2012, 2:08:27 PM3/15/12
to harbou...@googlegroups.com
Hola Massimo:
                       gracias por su tiempo y explicaciones a mis dudas sugerencias.
si tiene instalado HMG.3.0.40 pruebe cargar el proyecto : C:\hmg.3.0.40\SAMPLES\ACTIVEX.1
elija depurar.
se compilara el proyecto y se abrira el depurador.
indica que tiene cargado el ejecutable en la barra de titulo.
presiones la tecla funcion F8
mueva el cursor hasta la linea 50, presione la tecla funcion F7
nada.
si selecciona del menu "localizar" ir a linea, ingrese 50, seleccione del menu Run " ir al cursor F7.
nada.

es posible llamar al depurador desde la linea de comandos??
intente abrir a GDB.exe desde la carpeta  C:\hmg.3.0.40\MINGW\bin
pero me da la linea de comando gbd y no la interfaz del depurador.

translate google:

Hello Massimo:
                        thanks for your time and explanation to my question suggestions.
if you have installed the project HMG.3.0.40 try load : C:\hmg.3.0.40\SAMPLES\ACTIVEX.1
choose debug.
will compile the project and will open the debugger.
indicates that the executable is loaded in the title bar.
F8 function key pressures
move the cursor to the line 50, press the F7 function
nothing.
menu by selecting "locate" go online, enter 50, select Run from the menu "go to cursor F7.
nothing.

you can call the debugger from the command line?
attempt to open a GDB.exe from the folder C:\hmg.3.0.40\MINGW\bin
but I get the command line GBD and the debugger interface.
 
Saludos
                DaNIEl MaXiMiLiAnO


De: Massimo Belgrano <mbel...@deltain.it>
Para: harbou...@googlegroups.com
Enviado: jueves, 15 de marzo de 2012 14:29

Asunto: Re: [harbour-users] Rv: Debugger GUI

Massimo Belgrano

unread,
Mar 15, 2012, 2:43:09 PM3/15/12
to harbou...@googlegroups.com
sorry I not use hmg Minigui is a library external to harbour project http://www.hmgforum.com/
Please  post an pure harbour sample like C:\harbour\tests\debugtst.prg

DaNiElMaXiMiLiAnO

unread,
Mar 13, 2012, 8:38:41 PM3/13/12
to Harbour Users
Reply all
Reply to author
Forward
0 new messages