Hi I came from PHP world and want to play around with Dotnet Core.
I have working application inside a docker. To build and run the app I've prepared some Run configuration using JetBrains Rider which runs my docker-compose file.
version: '3'
services:
dotnet:
build:
context: ./
dockerfile: Docker/Dockerfile
ports:
- "8080:80"
- "10777:22"
volumes:
- ./:/app
command: dotnet run -c Debug
environment:
- ASPNETCORE_ENVIRONMENT=Development
container_name: myapp_dotnet
Now I would like to debug the application but so far didn't find any way to do it.
What I found until now is:
- debugging using ssh server inside a docker - can't see option attack to process via SSH in Rider
I have found an issue on JetBrains tracker: https://youtrack.jetbrains.com/issue/RIDER-742 which is about adding debugger support for Docker. But maybe someone have some workaround to deal with it?
PS. Is it a good/common practice in Dotnet Core world to develop an application inside a docker or it is senseless?