Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8696369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:15:42+00:00 2026-06-13T01:15:42+00:00

When debugging in Delphi, an exception will correctly tell me the line of code

  • 0

When debugging in Delphi, an exception will correctly tell me the line of code causing the fault, but I cannot get access to any local variables. Is this a limitation in the debugger? Or am I missing something simple? At present, I have to mirror all local variables to a global on the line before the fault, recompile the program and hope to be able to repeat the same exception.

For example

MyArray[I]:=Foo(...); 

If I is out of bounds (with bounds checking turned on), I cannot see what the variable I is, unless I mirrored it to a globally scoped debug variable on the previous line.

Or if I have

MyInteger:=Trunc(MyFloat), 

and MyFloat is 6.1E+17, I have no idea what it’s value is.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:15:43+00:00Added an answer on June 13, 2026 at 1:15 am

    You can see the values of local variables when you select the proper line in the call stack window. It is usually one or two lines before the exception is raised.

    I don’t have the exact version at hand when this has been implemented, but it is definitely one of the newer versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While debugging my application with Delphi 2009, I sometimes get the following exception occurring:
I followed these instructions while trying to get remote debugging working with Delphi 2007.
I'm debugging a Delphi code that use TJvProgramVersionCheck component from the excellent JVCL libs.
I'm debugging a legacy Delphi service application (it is old but compiled with Delphi
The Delphi debugger is great for debugging linear code, where one function calls other
this is odd, as debugging code, it seems that the Delphi is not pointing
Debugging with gdb, any c++ code that uses STL/boost is still a nightmare. Anyone
I get the error mentioned further on error when debugging an executable in Delphi
Possible Duplicate: What's wrong with Delphi's “with” I am have a problem debugging code
Debugging a Firefox addon is a slow process: (1) edit source code in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.