Recent

Author Topic: How do I see the source code line on which the program crashed?  (Read 303 times)

semichaud1

  • New Member
  • *
  • Posts: 38
I'm running FPC on Windows 10.

The following is displayed when my program crashes:

An unhandled exception occurred at $00402F8A :
ERangeError : Range check error
  $00402F8A
  $004097CC
  $0041C290

But I don't know what those characters and numbers are. I know what range check error means.

I just want to be able to display the line number in the code which causes the program to crash.

This would be extremely helpful to me for debugging in general.

So far searching online and trying different things I could not find a way.

Thanks.

Peter H

  • Jr. Member
  • **
  • Posts: 57
Re: How do I see the source code line on which the program crashed?
« Reply #1 on: July 27, 2019, 06:28:21 pm »
Try this in project options..