I have some very big DataTable
s, which I need to see their content while debugging.
Is there a better way to do that other than opening the Column
s' and row
s' lists Properties in the Watch panel?
Thanks.
set the break point on the dataset/datatable(f9 shortcut key for break point) and run your application (f5 is the shortcutkey ) When the break point comes mouse hover the dataset/datatable click on the glass shown in the hover image in visual studio . Note : check compilation debug="true" is true in web config .
This can be done by clicking and dragging the button to your browser's bookmark bar, or right clicking on the button an selecting "Add to bookmark. Then load the web-page with the DataTable you wish to debug and select the bookmarklet from your bookmark bar.
You can access the contents of a DataTable by using the Rows and Columns collections of the DataTable. You can also use the Select method to return subsets of the data in a DataTable according to criteria including search criteria, sort order, and row state.
Use the DataTable visualizer; hold your mouse over the variable and click on the magnifying glass this will open the DataTable visualizer.
Btw, there are more VS2010 visualizers for other actions. I really like the WPF Tree visualizer: hold your mouse on a WPF control and click the magnifying glass ;-)
Open the DataSet visualizer. Either hover over the variable in the source code or look at one of the variables in a debugger window (Locals, Auto, etc.) Then click the magnifying glass.
MSDN article on How to Use a Visualizer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With