fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Custom Viewer for datatable / dataset not working in F# debugger

Open smoothdeveloper opened this issue 3 years ago • 0 comments

Repro steps

In Visual Studio (2022 here)

open System.Data

let table = new DataTable("test")
table.Columns.Add("a", typeof<string>)
table.Columns.Add("b", typeof<int>)

table.Rows.Add("a",1) |> ignore
table.Rows.Add("b",2) |> ignore

table
  • debug the script till point there is one record in the table
  • after hovering on table symbol, click on view

Expected behavior

I would like it to work the same as in C# or VB.NET debugger, it should show what is described on https://docs.microsoft.com/en-us/visualstudio/debugger/dataset-visualizer-dialog-box?view=vs-2022

Actual behavior

It shows

Could not load this custom viewer.

image

Known workarounds

Not found.

Related information

  • Windows 11 Pro build 22598.200
  • VS 2022 17.2.0
  • .NET Framework 4.8

smoothdeveloper avatar Jul 11 '22 08:07 smoothdeveloper