Cannot debug with docker-compose

Hi, 

I have recently switched to a mac and I am trying to work with the JetBrains Rider, as I heard it is a good alternative to Visual Studio. 

I've set everything up based on the following link:

https://blog.jetbrains.com/dotnet/2023/08/16/debugging-docker-and-docker-compose-solutions-with-jetbrains-rider/

But the debugging still does not work. I see that my containers start up and I can use my application but it is not attached and I cannot debug any of my services. 

One more intriguing thing that I've noticed - Whenever I run/debug the docker-compose I see background tasks of ‘Preparing deployment’ and ‘Pulling images’ where it pulls lots of images (even those that I do not need, for example - images with version of 8 years ago). I expect that even if it does not manage to take a version number (which I do specify explicitly) then it will just take the latest one. Can you tell me why it does this and how can I disable it? 

Thanks!

 

0
1 comment

Hi Boris, 

You can check the instructions on this YouTrack ticket.  

The Rider debugging host will be added into the container automatically. To use the Attach to Docker Container feature mentioned here, you need to use Rider 2023.3 EAP version currently. 

For another issue you mentioned, I see your comments in this ticket. 

RIDER-101357 Debug with docker compose: Build args are ignored in docker files [Mac M2 - Sonoma OS] 

Do let me know if you need further help on this ticket, thanks! 

Regards, 

Tao

0

Please sign in to leave a comment.