比如
我的代码中有循环,循环中已经有处理意外的代码:try
   num := inttostr(edtNumber.text);
except
   num := 0;
   edtNumber.text := '0';
end;怎么在调试时让这段代码中当发生意外时不弹出警告框?
然后又怎样开启?
有些意外事件是vcl单元已经处理了,但还是弹出警告框,怎样屏蔽和开启?

解决方案 »

  1.   


    Tools->Options->Debugger Options->Language Exceptions
      

  2.   

    Tools->Options->Debugger Options->Language Exceptions;
      

  3.   

    我怎么知道添加什么exception。
    下面是我捕捉到的错误信息:
    -------------------------------------------------------------------------------
      fox.exe raised exception class EHalcyonError with message 'Invalid numeric value in field S03->S9 
    (   -.---)'. Process stopped. Use Step or Run to continue.
    -------------------------------------------------------------------------------
      

  4.   

    是的添加这个EHalcyonError进Language Exceptions是可以屏蔽的,
    如果我只想屏蔽一部分代码的异常,怎么做?