VS.NET
Does you bug tracking system do this?
Mine does now. It was suprisingly easy to add support to VS.NET:
TaskList tl = (TaskList)applicationObject.Windows.Item(Constants.vsWindowKindTaskList).Object;
tl.TaskItems.Add("Bugs", bugID, exceptionText, vsTaskPriority.vsTaskPriorityHigh, ipBugImage, false, exceptionFile, exceptionLineNumber, false, true);
The DTE interfaces are very easy to use and extender projects with VS.NET are a breeze. They are a bit of a pain to debug and there is a slight learning curve if you have never done an IDE extension before or messed with of the Office object models, but nothing that a healthy dose of MSDN and Google can't cure.