I want perform a breakpoint in code only when I’m working in the code directly. I tried this solution, but it doesn’t work as expected:
<Conditional("DEBUG")>
Public Sub Breakpoint()
#If DEBUG Then
System.Diagnostics.Debugger.Break()
#End If
End Sub
How do I identify the problem?
Use: