How to debug in C #?

2

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.

    
asked by anonymous 28.06.2015 / 02:36

1 answer

2

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 in Break Point , click on the    Immediate Windows , enter ? and objeto/variável , etc and type    ENTER

  

2.ClickontheLocaltabandbrowsetheobjetos/variáveis,etc.

  

3 . Mouse Over on the object

  

4.TheOutputtabshows,amongotherinformation,theresultofthecommandWriteLine,ex:Debug.WriteLine(objeto.propriedade);,inthiscaseitisnotnecessaryBreakPoint

Visual Studio IDE User's Guide

    
28.06.2015 / 03:52