0

I'm using Delphi Community edition 10.4 and I'm trying to find an error in my code. I have used Delphi 7 where if you use "Trace Into" it helps you find your error.

When using the Community edition, it shows me a bunch of random code and when I press F8 and it starts my program, it doesn't show anything in the Object Inspector.

AmigoJack
  • 5,234
  • 1
  • 15
  • 31
Resets
  • 1
  • I don't understand - in Delphi 7 the Object Inspector also hides by default when running the program. – AmigoJack Jul 17 '22 at 12:29
  • not when using trace into – Resets Jul 17 '22 at 12:32
  • 2
    When you "trace" your code, you are in the "debug" layout. By default it shows the variables so somehow you changed the default. It is easy to make it visible again: Use menu / View / Debug Windows / Local variables. Don't forget to save the desktop layout so that you get it the next time. – fpiette Jul 17 '22 at 12:48
  • thats exactly the problem, it is on but it shows nothing. just process is not accessible – Resets Jul 17 '22 at 13:25
  • that happens to me a lot with methods that jump into a "proc"-reference; anything in the jump isn't accessible anymore – complete_stranger Jul 17 '22 at 13:45
  • 1
    Are you sure that you're talking about the Object Inspector? You'd expect to see the values of variables in the Local Variables window and/or the Watch List window (if you've set a watch). But not when you press F8 to start the program, as that wouldn't immediately take you to anywhere with variables. Try putting a breakpoint in your code where there is a variable you want to inspect, and start the program with F9 (Run). – Philip J. Rayment Jul 18 '22 at 09:53

0 Answers0