How to pass command line when debugging docker-compose project in Visual Studio?

≯℡__Kan透↙ 提交于 2019-12-11 00:34:37

问题


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:


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



来源:https://stackoverflow.com/questions/52263380/how-to-pass-command-line-when-debugging-docker-compose-project-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!