Alex Rivera | Logout

How to debug LinqPad query in Visual Studio Debugger?

Asked 2011-04-06T09:43:39.630
43

I can attach the debugger and get it to break - but it has trouble finding the .cs file, I think LinqPad deletes it as part of its build.. 8-(

Edit
Report

1 Answer

25
  • Start LINQPad
  • In VS, open Debug -> Attach to Process...
  • Choose LINQPad.exe
  • Set breakpoint in your code called by LINQPad C# code, or write Debugger.Break() in your LINQPad script where you want the debugger to halt.
  • Execute the script from LINQPad and watch the magic.
answered 2012-04-04T07:34:09.947

Your Answer