Jump to content
Jud

handling runtime errors

Recommended Posts

Today I pulled out one of my VCL program from a few months ago.  When I ran it, it hit a range check error - giving a message on the screen.  I put the source in the IDS to find the error.  I have R+ and Q+.  When I ran it in the IDE, it gave the same message - it did not take me to the line with the error.  I seem to remember that I did something to handle runtime errors differently, but I can't remember what.

 

What can I do to get the IDE to show me the line where the error occurred again?

 

(BTW, I did find this error fairly quickly with assert statements, but I want the IDE to show me the line with the error.)

Share this post


Link to post

Well, you have to make sure the program is build with debug information (check the project options) and also check the IDE debugger settings in the Tools -> Options dialog, under Debugger -> Embarcadero Debuggers. There you find two lists for exceptions the debugger was told to ignore.

Share this post


Link to post

Thanks!  Somehow I had all of the boxes in the list checked.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×