1

I'm having a bad day. I have a c# console application project in Visual Studio 2012 and would like to pass in command line argument when debugging.

This is straightforward in a c++ console application because there is a debug pane in the project properties. The c# console application properties does not have a debug pane.

How can I set the command line args?

Thanks in advance.

2 Answers 2

1

I don’t have Visual Studio 2012 anymore, but only 2013 on this machine, so you will have to believe me that it looks just the same in 2012.

If you go into the project’s properties (right click in the solution explorer on the project and choose “Properties”), then head into the “Debug” tab and there you can set the command line arguments:

Command line arguments

Just enter the arguments that should be passed when debugging the application and it should work.

Sign up to request clarification or add additional context in comments.

5 Comments

My VS2010 looks exactly like my VS2013 as in the screenshot above.
Thanks. Is this a c# console application project?
@user1400716 Yes, it is.
I am definitely having a bad day. I don't have the debug pane in VS2012.
Which one do you have there instead?
0

Right click on the project go to properties of the project. hit the debug tab on it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.