Reputation: 502
i was wondering if there's any way to stop the execution point at the error in Delphi
like
StrToInt('1'); < ok
StrToInt('A'); < execution point stops here to show me where's the error
StrToInt('2');
Upvotes: 0
Views: 241
Reputation: 612993
The setting is here: Options | Debugger Options | Embarcadero Debuggers | Language Exceptions and the setting is named Notify on language exceptions. You need it to be checked.
The IDE will break at the point where the exception is raised. In your code that is inside the call to StrToInt
. Use the call stack to work out where the call originated.
Upvotes: 1