extended labeling of local var's in debugger

Post your requests and ideas on the future development of mikroPascal.
Post Reply
Author
Message
jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

extended labeling of local var's in debugger

#1 Post by jpc » 15 Nov 2005 11:18

I noticed that when using common names for local var's while debugging i wish the local var would reference to it's owner, similar to the way these references are created by the assembler. I will just give an example :

Code: Select all

program locvartest;
var i : array[0..7] of byte;

procedure proc1;
var i : longint;
begin
  i := 12345;
end;

procedure proc2;
var i : string[20];
begin
  i := 'test';
end;

procedure proc3;
var i : real;
begin
  i := 123.456;
  proc1;
  i := i * 2;
end;

procedure proc4;
var i : word;
begin
  for i := 1 to 5 do nop;
  proc3;
end;

begin
 i[5] := 17;
  proc1;
  proc2;
  proc3;
  proc4;
end.
in the debugger all local var's i are just called i , which as such is correct but i feel it would be helpfull if these names would include their originating proc/func. Now it needs some puzzling.

JPC

jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

#2 Post by jpc » 17 Nov 2005 13:45

i forgot ot ask it , same counts for name's in the watch window , here it would be convenient if the full name could be displayed ( like on the selection-line )
Another little refinement would be to add that full name to the Edit Value window in the debugger . Should not be to much of a problem as all data is already know.

JPC

Post Reply

Return to “mikroPascal Wish List”