Debug and attach it to processes running inside Docker

Here I was, on a delightful afternoon, sipping a cup of coffee and scripting commands for Sitecore. Sitecore was operational within a Docker environment. With each code modification, build, and deployment, I found myself occasionally running up.ps1 in case of errors. Crossing my fingers, I tested the command with the aim of attaching Visual Studio to the w3wp process running on the cm image.

In VS follw these steps:

Select Docker from the cnnection type dropdown

Click on “Find”
is this is your first time, visual studio will install a package in your docker from nuget so that it’s discoverable.

Once you are connected to the right image find your process and attach it.

Deixe um comentário

Trending