Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to copy debug data from VS to Linqpad?

I like linqpad, but often when I need it, I have some data in Visual studio that I need to do stuff with.

Therefore I would love to know if it is possible to copy some list of data into Linqpad, creating the necessary classes and inserting the same values into the list, so I have real data to work with

So I would debug and get something like this in a breakpoint:

enter image description here

I then want those 5 items in a list in linqpad that I can work with

like image 275
Mech0z Avatar asked Apr 25 '16 11:04

Mech0z


1 Answers

Check out LINQBridgeVs, it's a VS Extension that allows you to launch LINQPad from the VS debugger copying a complex data type over to a new LINQPad snippet along with the debug time data.

  1. After installing the extension, enable the solution you're debugging, click the magnifier dropdown for the complex type and click LINQBridgeVS Visualizer from the context menu.

enter image description here

  1. A new snippet will be opened in LINQPad with the data structure and debug time data ready to go.

enter image description here

like image 157
Matt Dearing Avatar answered Oct 31 '22 01:10

Matt Dearing