Debugging - how do I execute code line by line?

后端 未结 3 1067
鱼传尺愫
鱼传尺愫 2020-12-06 06:08

I am having a hard time debugging my C# app in Visual Studio. I can\'t figure out how to debug code line by line, but not at the moment the program starts (because I would h

3条回答
  •  难免孤独
    2020-12-06 06:21

    Instead of clicking the Run button, click the Step Over button to start your project. You won't need any breakpoints (although they are helpful) and you can start running your code line by line. Just keep clicking Step Over (or Step Into if you want to step into a method's implementation).

提交回复
热议问题