Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些代码可以在我们网络上的远程共享上创建文件夹,并且由于共享不可用而出现异常。我只是为了记录目的而在堆栈中进一步捕捉异常,但是由于某种原因,vs2010 只是停止执行并提醒我这个问题。我怎样才能让它忽略这个异常并让它冒泡。
你只需要进入VS中的Debug菜单->Exceptions对话框,把你不想被困的异常取消勾选即可。您可以选择整个范围或单个例外类型。