How to view a DataTable while debugging

前端 未结 4 618
南笙
南笙 2020-12-02 08:03

I\'m just getting started using ADO.NET and DataSets and DataTables. One problem I\'m having is it seems pretty hard to tell what values are in the data table when trying to

4条回答
  •  难免孤独
    2020-12-02 08:41

    With a break point set, after the DataTable or DataSet is populated, you can see a magnifying glass if you hover over the variable. If you click on it, it will bring up the DataTable Visualizer, which you can read about here.

    In this image you see below, dt is my DataTable variable and the breakpoint was hit a few lines below allowing me to hover over this value. Using Visual Studio 2008.

    alt text

    DataTable Visualizer (image credit):
    alt text

提交回复
热议问题