开发者

switching of debugger

I am using Delphi to create a program and need help with turning of the Delphi debugger. I create some开发者_运维百科 code as follows:

try

... ... ...

except

...

unfortunately before moving to the except code the debugger kicks in with a un-user friendly message. How can switch it off and move directly to the except code?


Put a breakpoint on the "try" line. Right-click on the red dot and open the breakpoint properties. Hit "Advanced," uncheck "Break" and check "Ignore subsequent exceptions." Then you'll probably want to put one inside the Except block with "Handle subsequent exceptions" checked, so you don't lose exception-debugging altogether.

Or, if you never want the debugger to break for that exception type, there's a checkbox on the debugger's exception handler dialog box to make it ignore that class in the future. (This setting can be changed later on under Tools->Options.)


The following article gives some details about how to turn those messages on/off.

http://pages.cs.wisc.edu/~rkennedy/exception-messages


In the debugger options, you'll find a section called Language Exceptions. Uncheck the option to notify on language exceptions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜