When you are using Entity Framework migrations you will probably use the Package Manager Console to execute commands like update-database.

Package Manager Console in Visual Studio

Now the question arises: how can I debug my code if I am not debugging it via Visual Studio. Add the following line to your code and you will get asked which visual studio instance you would like to use to debug.