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