How to debug non-LinqPad code?
With older versions of LinqPad, you could attach the Visual studio debugger and step through, not just your LinqPad script but also through your code in other dlls.
With the new integrated debugger, I can't seem to find a way to step into the code in other dlls and System.Diagnostics.Debugger.Break() doesn't allow me to attach to Visual Studio any more.
Does anyone know a way of doing this?
With the new integrated debugger, I can't seem to find a way to step into the code in other dlls and System.Diagnostics.Debugger.Break() doesn't allow me to attach to Visual Studio any more.
Does anyone know a way of doing this?
Comments
You will need to ensure that the LINQPad debugger is not also attached. To do this, uncheck the toolbar buttons 'Break when exception is thrown' and 'Break when exception is unhandled' and make sure there are no breakpoints.
When it hits there, you'll get the typical dialog asking you which instance of Visual Studio to debug with, and select the one with your open project. Provided you have built your project that your query is referencing, it will respect any breakpoints you have already set.
Thanks.