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 » Sun Mar 03, 2013 1:38 am

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
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Mon Mar 04, 2013 2:38 pm

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: 1149
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 35 times
Been thanked: 68 times
Contact:

Post by andyglezl » Fri Apr 12, 2013 4:26 am

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 127 times
Demodebug.jpg
Demodebug.jpg (89.57 KiB) Viewed 1331 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 » Fri Apr 12, 2013 4:51 pm

Hola...

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

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

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

regards
Polo

Post Reply