Debugging C # Applications

I come from the background of PHP, where my "debugging" tools are mostly echo, var_dumpand exit. Although I know the importance of debugging, I never tried to use / learn the debugging tool.

Now I am studying C #, and I think I can’t really , without extensive knowledge of this area.

So my question is: where can I find out what is and how to do debugging? I know what a breakpoint is (conceptually), but how to use it? How to use step and step forward? Basic things like this.

As a related question, in C # (Visual Studio) there is something like var_dumpwhere I can validate any object.

It is very difficult and painful foreachfor me to do for each array / list to see the contents, especially now when I am still learning the language.

+3
source share
4 answers

Microsoft # Visual Studio, .
VS ; , , foreach, , , ( ) , ( - ), , , .
Step Into and Step Over , , , , ..

+11

StackOverflow:

Visual Studio 2008

+4

, "", .

A , ( ). , , - .

" ", - .

F10 .

F11 ,

Ctrl-D " ", ​​ /.

, , - .

- - , .

F10 , .

, PHP " " - Visual Studio , .

, .

, IDE. , , PHP.

+2

Microsoft Visual Studio, Visual # Express, : http://msdn.com/express/

It is located at the bottom of the page and is very useful. It contains almost every answer that you can find as a beginner in C # .... Welcome to C #, my friend: -D

0
source

Source: https://habr.com/ru/post/1714610/


All Articles