This article today caught my eye, it was written by Ben Hosking. It shows how to remotely debug plugins / plug-ins using Visual Studio that are registered with an on-premise CRM instance. If you use online I recommend having an on-premise development instance you can test your sandbox plugins in so you can take advantage of this same technique.
To read how this works please visit the link below:
I hope this helps and have a nice weekend!