Help with Debug

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Leopoldo Blancas
Posts: 388
Joined: Wed Nov 21, 2012 7:14 pm
Location: México

Re: Help with Debug

Post by Leopoldo Blancas »

Hola... andyglezl

Esta interesante tu aplicaciòn... :D

Saludos
Polo
*------------------------------------------------------------------------------------------
Hello ... andyglezl

This interesting your application ... : D

regards
Polo
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Help with Debug

Post by Pablo César »

andyglezl wrote:Pablo, tome tu rutina para manejar el archivo .mem que es justamente lo que queria hacer.
Ok.
Now, according to the description in Clipper SAVE
/ *
SAVE public and private memory copies visible variables Within the
current procedure or user-defined function to a memory (. mem) file.
Arrays and the local and static variables, However, Can Be Saved. When
variables are saved, copied without They are reference to any scope.
Variables or hidden by PRIVATE LOCAL declarations are not saved.

So we should see how to solve this (I guess all
define local variables).
* /

I have the following:

1. - Saving local variables, LOCAL DEFINE STATIC ????
I have not discovered yet but I have a important tip. See at ..\harbour\src\debug folder (source Harbour) and you will find out what you are looking for. It is not easy to understand, very complexed. But I believe you will get LOCAL and STATICS variables thru HB_VARINFO and HB_CALLSTACKINFO. In Debugger.prg you also note there is an array aProcStack which contains CSTACK_LOCALS (Local variables) been already declarable by dbgentry.c
I gues that so by dbgmenu.prg which also contains a ShowVar() at menu item for Local variables.

Sorry I have not more usefull information upto this moment. I tryied to undestand, but is it so hard.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Help with Debug

Post by andyglezl »

Tercer "round", nuevas modificaciones al programa.

Gracias al Foro, muchas cosas salieron de aqui.

Espero les sea de utilidad...
-------------------------------------------------
Third "round", new amendments to the program.

Thanks to the Forum, many things left here.

I hope this will be useful ...
Attachments
DemoDebug.rar
(14.63 KiB) Downloaded 321 times
Demodebug.jpg
Demodebug.jpg (89.57 KiB) Viewed 2839 times
Andrés González López
Desde Guadalajara, Jalisco. México.
Leopoldo Blancas
Posts: 388
Joined: Wed Nov 21, 2012 7:14 pm
Location: México

Re: Help with Debug

Post by Leopoldo Blancas »

Hola...

Muy buen material... Felicidades voy a estudiarlo...

Saludos
Polo
*-------------------------------------------------------------------------------------------------------------------
Hello ...

Very good stuff ... Congratulations go to study ...

regards
Polo
Post Reply