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.
目前我有一个代码块try and catch。在 try 块中,我使用了一些基于的逻辑IO and Database,现在如何知道哪一行代码在 io 或 db 相关代码的 try 块中生成/获取异常。
try and catch
IO and Database
它在 .Net 中非常简单。在您的 .Net 窗口中按Ctrl+ Alt+ E。例外窗口将打开。在那里您可以看到Common Language Runtime Exceptions启用这两个复选框。发生异常时,您可以获得错误行。按下F5后将转到catch block。
Ctrl
Alt
E
Common Language Runtime Exceptions
F5
catch block