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
Has thanked: 3 times
Been thanked: 9 times

Re: Help with Debug

Post by Leopoldo Blancas »

Hola... andyglezl

Esta interesante tu aplicaciòn... :D

Hello ... andyglezl

This interesting your application ... : D


User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César »

andyglezl wrote:Pablo, tome tu rutina para manejar el archivo .mem que es justamente lo que queria hacer.
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
Posts: 1272
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 42 times
Been thanked: 130 times

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 ...
(14.63 KiB) Downloaded 198 times
Demodebug.jpg (89.57 KiB) Viewed 2022 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
Has thanked: 3 times
Been thanked: 9 times

Post by Leopoldo Blancas »


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

Hello ...

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


Post Reply