How to debug a C# command-line program

后端 未结 6 1661
说谎
说谎 2021-02-07 04:11

I\'m trying to build a command-line tool in C# with VS2010.

My question is: how do I debug this, like I would a winforms.
With winforms, I can step through the code,

6条回答
  •  你的背包
    2021-02-07 04:33

    In the Project properties, under Debug, you can enter any Command Line Arguments you would like, and then run the app with F5, the debugger will be attached automatically.

提交回复
热议问题