I'm attempting to debug a piece of code in my application and I get
this statement when trying to Watch, Evaluate, or Inspect a particular
variable.

E2171 Variable <blah> inaccessible here due to optimization

It is most important that I see the value of blah at this time.

The code is in a loop that runs many thousands of times and I am
stopping in a particular place in the program and setting the
breakpoint in that loop so that I can see the value in the next loop -
so presenting a ShowMessage() is not practical.

I have set the project/options/compiler/optimization; to Off
I have set the project/options/linker/Map File; to Detailed (in desperation)

What else do I need to set to tell Delphi that I really, really,
pretty please, need to see that value?

Steve

--
Steve Peacocke
http://stevepeacocke.blogspot.com/
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to