Autor Beitrag
C-Paul
Hält's aus hier
Beiträge: 4

XP

BeitragVerfasst: Sa 08.05.04 21:48 
Beim Debugging steht mein Programm an einem Haltepunkt, und ich möchte wissen, welchen Inhalt diverse Variablen gerade haben.
Bei früheren Versionen von Delphi hat es gereicht, den Mauszeiger im Programmlisting auf einer Variablen zu positionieren; der aktuelle Inhalt ist dann sofort in einem kleinen Fenster erschienen.
Bei Delphi 7 muss ich Strg-F7 drücken; kann ich die "alte" Funktion irgendwo einstellen?
Wahrscheinlich ist es ganz einfach, wenn man es weiß, aber ich weiß es leider nicht!
Danke!

Moderiert von user profile iconMotzi: Topic Verschoben
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: So 09.05.04 13:21 
Also IMHO funktioniert das bei allen Delphi-Versionen ohne irgendwelche weiteren Einstellungen..! Sofern die Optimierung aktiviert ist kann man allerdings nicht immer auf alle Variablenwerte zugreifen... Strg-F7 gibt da eine entsprechende Meldung aus, während das Hint-Fenster erst gar nicht erscheint..

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 09.05.04 13:59 
Nein, das ghet bei D7 Personal definitiv nicht, das haben schon andere festgestellt. Und genau aus diesem Grund ist D7 Personal auch wieder runtergeflogen bei mir.
Jetstream
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 222



BeitragVerfasst: So 09.05.04 22:04 
Titel: Hm ?
Warum nicht einfach so:

Wenn deine variablen a, b und c sind als integer zum beispiel, erstell n label Label1 und schreib dir ne prozedur:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure Anzeigen;
begin
  Form1.Label1.Caption:='';
  Form1.Label1.Caption:=Form1.Label1.Caption+'Inhalt von a: '+inttostr(a)+#13;
  Form1.Label1.Caption:=Form1.Label1.Caption+'Inhalt von b: '+inttostr(b)+#13;
  Form1.Label1.Caption:=Form1.Label1.Caption+'Inhalt von c: '+inttostr(c)+#13;
end;


Wenn du mehr Variablen hast kommen da entsprechend mehr Zeilen rein, wenn es keine integer sind wie im beispiel, nimmste halt kein inttostr sondern für real oder andere gleitkommazahlen floattostr, für strings und chars einfach nur die variable.

Hilft das ?
chefkoch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WIN XP pro
D7
BeitragVerfasst: So 09.05.04 22:13 
Hallo ??
Das ist sche**** viel Arbeit vielleicht ?? ..

Also bei der Enterprise version stresst der nur ein wenig rum aber ansonsten zeigt er alles wie bei den vorgänger-versionen an ?

..

_________________
Chaos, Panic, Disorder - My work here is done
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 09.05.04 23:15 
Titel: Re: Hm ?
Jetstream hat folgendes geschrieben:
Warum nicht einfach so:

Wenn deine variablen a, b und c sind als integer zum beispiel, erstell n label Label1 und schreib dir ne prozedur:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure Anzeigen;
begin
  Form1.Label1.Caption:='';
  Form1.Label1.Caption:=Form1.Label1.Caption+'Inhalt von a: '+inttostr(a)+#13;
  Form1.Label1.Caption:=Form1.Label1.Caption+'Inhalt von b: '+inttostr(b)+#13;
  Form1.Label1.Caption:=Form1.Label1.Caption+'Inhalt von c: '+inttostr(c)+#13;
end;


LOL. Netter scherz. :mrgreen: Also das dürfte beim Debuggen nun echt keine Hilfe sein. Dann schon lieber mal in einer Schleife ein writeln und als APPTYPE CONSOLE angeben.