How to debug in C # based on the simple form of PHP that usually uses var_dump
or print_r
?
I have an object in C # but I do not know how to know what's in the structure of it.
How to debug in C # based on the simple form of PHP that usually uses var_dump
or print_r
?
I have an object in C # but I do not know how to know what's in the structure of it.
The first 3 options shown here are required to add break point
in your code to view the objeto
structure:
1. After
IDE
pauses the code inBreak Point
, click on theImmediate Windows
, enter?
andobjeto/variável
, etc and type ENTER
2.Clickonthe
Local
tabandbrowsetheobjetos/variáveis,etc
.
3 .
Mouse Over
on the object
4.The
Output
tabshows,amongotherinformation,theresultofthecommandWriteLine
,ex:Debug.WriteLine(objeto.propriedade);
,inthiscaseitisnotnecessaryBreakPoint
Visual Studio IDE User's Guide