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.
我只想在直接处理代码时在代码中执行断点。我尝试了这个解决方案,但它没有按预期工作:
<Conditional("DEBUG")> Public Sub Breakpoint() #If DEBUG Then System.Diagnostics.Debugger.Break() #End If End Sub
我如何识别问题?
利用:
If System.Diagnostics.Debugger.IsAttached Then System.Diagnostics.Debugger.Break() End If