如何在Visual Studio Debugger中调试LinqPad查询?

如何在Visual Studio Debugger中调试LinqPad查询?

问题描述:

我可以附加调试器并使其破坏 - 但是找不到.cs文件时遇到麻烦,我认为LinqPad会将其删除作为其构建的一部分。8 - (

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-(

如果您调用 Debugger.Launch() / Debugger.Break()在LINQPad脚本中启动断点,LINQPad会猜测您要使用VS来调试脚本,不会删除.cs文件。

If you call Debugger.Launch() / Debugger.Break() to initiate the breakpoint within your LINQPad script, LINQPad will guess that you want to use VS to debug your script and won't delete the .cs file.