How to Debug CRM 2011 Plugin
Well there are a couple of ways and steps of doing it.
Like putting it in sandbox, enable it by registry editing.
and than attach debugger….
But it turns out you could do something like Die in PHP.
What ever you put on Trace , it will appended on the message when exception is thrown.
localContext.Trace([Output server variable)
throw new Exception(“Trace message”);
and you should see it when you Trigger it correctly