Visual Studio Visualizers (LINQPad Option?)
Hello All,
Is there a built in way to see LINQPad as a Visualizer in Visual studio? I have seen some outside work like LINQBridgeVs Extension https://visualstudiogallery.msdn.microsoft.com/8ede652c-396f-4dc9-bc4f-c88f9b8291d2, is there anything built in that does this? If not can we add it to the suggestions list?
If I could use LINQPad inside VS when I am debugging, WOW, you how amazing that would be?
Thanks
Is there a built in way to see LINQPad as a Visualizer in Visual studio? I have seen some outside work like LINQBridgeVs Extension https://visualstudiogallery.msdn.microsoft.com/8ede652c-396f-4dc9-bc4f-c88f9b8291d2, is there anything built in that does this? If not can we add it to the suggestions list?
If I could use LINQPad inside VS when I am debugging, WOW, you how amazing that would be?
Thanks
Comments
This seems to be working so far, I will update if there is anything else.
Steps to get it to work from Joe: Extensions:
public static class Extensions { /// <summary> /// Dumps to a temporary html file and opens in the browser. /// </summary> /// <param name="o">The object to display.</param> public static void DumpToFile<T>(this T o) { string localUrl = Path.GetTempFileName() + ".html"; using (var writer = LINQPad.Util.CreateXhtmlWriter(true)) { writer.Write(o); File.WriteAllText(localUrl, writer.ToString()); } Process.Start(localUrl); } /// <summary> /// Dumps to debugger. Used in the HTML debug view. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="o">The o.</param> /// <returns></returns> public static string DumpToDebugger<T>(this T o) { var writer = LINQPad.Util.CreateXhtmlWriter(); writer.Write(o); return writer.ToString(); } }
That's not possible. The debugger visualizer dll must know about the types to be mapped (e.g. the types of your project/s), which means a linqpad.dll cannot be just simply dropped in the Visualizers folder.
Disclaimer: I'm the author of LINQBridgeVs