Search code examples
c#debuggingvisual-studio-debugging

How to use breakpoint for debugging in other solution


I have a web application in .netcore, I have two Solution and from one of them I have just a class library and create nuget package from that, from another solution I used that nuget package in it and call some methods but how can I use breakpoint for debugging methods in that class library?


Solution

  • you can used this Debugger.Break() in your method and when call that method its stop on this line and you can debug it, use this one:

    System.Diagnostics.Debugger.Break();