我想在短时间内暂时禁用断点,所以我设置了一个条件断点,条件如下:
(global::System.DateTime.Now<new global::System.DateTime(2014,03,28,11,0,0))
当这个断点被击中时,会弹出一个对话框,说
The condition for a breakpoint failed to execute. The condition was
'(global::System.DateTime.Now<new
global::System.DateTime(2014,03,28,11,0,0))'. The error returned was
'The runtime has refused to evaluate the expression at this time.'. Click
OK to stop at this breakpoint.
为什么运行时拒绝评估表达式?
在不修改调试的源代码的情况下,我可以做些什么来获得所需的行为?