Copy object values in Visual Studio debug mode

前端 未结 12 516
轻奢々
轻奢々 2021-01-29 19:17

In Visual Studio debug mode it\'s possible to hover over variables to show their value and then right-click to \"Copy\", \"Copy Expression\" or \"Copy Value\".

In case t

12条回答
  •  孤独总比滥情好
    2021-01-29 19:33

    Most popular answer from https://stackoverflow.com/a/23362097/2680660:

    With any luck you have Json.Net in you appdomain already. In which case pop this into your Immediate window:

    Newtonsoft.Json.JsonConvert.SerializeObject(someVariable)
    

提交回复
热议问题