Debug break on error
Spire_Jeff
Posts: 1,917
Is there a way to have the debugger break on error and highlight the offending line of code?
Jeff
Jeff
0
Comments
I personally haven?t found break on error all that useful and I can?t think of a time that I?ve actually found the need to use it. I take it you feel otherwise?
I am currently having an error that is as follows:
Now, I can (and will) just check near line 333 in each of the include files I have, but I thought it would be nice to just have the debugger stop right when the error occurred. Nothing I can't live without tho.
Jeff
At least you are getting a line number.
Sometimes the run-time errors don?t reference a variable or a line number which really makes things tricky.
This can all be easily avoided though. Just write perfect code every time.
It is my contention that I write perfect code every time. It is the fault of either an imperfect compiler or an imperfect processor that errors occur. (It could also be the fault of an imperfect keyboard that responds to the buttons I push and not the buttons my mind intended to push. )
Jeff
The debugger may not be as robust as others but you can do all the basics like watch variables, set breakpoints, and step though code.
That sounds like a debugger to me.