delphi调试查看变量值,一个很简单的赋值语句,watch list 里面的变量一直显示“inaccessible value" .
procedure TForm1.Button1Click(Sender: TObject);
var i,j,c:integer;
begin
i:=10;
j:=20;
c:=i+j;
Edit1.Text:=IntToStr(c) ;
end;
watch name value
i inaccessible value
j inaccessible value
c inaccessible value难道是编译器有问题吗?
procedure TForm1.Button1Click(Sender: TObject);
var i,j,c:integer;
begin
i:=10;
j:=20;
c:=i+j;
Edit1.Text:=IntToStr(c) ;
end;
watch name value
i inaccessible value
j inaccessible value
c inaccessible value难道是编译器有问题吗?
procedure TForm1.Button1Click(Sender: TObject);
var i,j,c:integer;
si,sj,sc:string;
begin
i:=10;
si:=inttostr(i);
j:=20;
sj:=inttostr(j);
c:=i+j;
sc:=inttostr(c);
Edit1.Text:=IntToStr(c) ;
end;