3

I created a .Net core 2.1 console application with Linux docker support using Visual Studio 2017. I can run the application using the following command line

docker run myApp arg1 arg2

I want to debug it in VS so I set the project docker-compose as the startup project and debug run "Docker Compose" in Visual Studio. However, is there a way to set up the command line arguments? (arg1 arg2 in my example).

1 Answer 1

1

Unfortunately there is no easy way to do this right now because of the way VS handles debugging into docker containers.

See this issue for more info: https://github.com/Microsoft/DockerTools/issues/75

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

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.