В случае если я обращаюсь к какой-то функции и передаю допустим неверные параметры. Thunderbird ведь должен где-то заругаться и куда-то написать, что именно ему не нравится?
В консоли ошибок Инструменты -> консоль ошибок - этого нет.

Вот в частности, не знаю почему это не работает. ошибок никаких не выдается, а гадать уже устал.

NS_IMETHOD  SendMessageFile(
                          nsIMsgIdentity                    *aUserIdentity,
- the user identity for the person doing the send operation. This will be needed to determine the appropriate folder for copy operations.
                          nsIMsgCompFields                  *fields,
- the message composition fields. This will contain all of the relevant header information for message delivery
                          nsFileSpec                        *sendFileSpec,
- the file spec for the message being sent
                          PRBool                            deleteSendFileOnCompletion,
- tell the back end if it should delete the file upon successful completion
                          PRBool                            digest_p,
- this is a flag that says that most of the documents we are attaching are themselves messages, and so we should generate a multipart/digest container instead of multipart/mixed.  (It's a minor difference.)
                          nsMsgDeliverMode                  mode,
- mode is the delivery mode. This can be set for the various modes of delivery. These can include nsMsgDeliverNow, nsMsgQueueForLater, nsMsgSave, nsMsgSaveAs, nsMsgSaveAsDraft, nsMsgSaveAsTemplate.
                                        nsIMessage                        *msgToReplace,
- if the delivery mode is set to nsMsgSaveAsDraft, this is a pointer to the the nsIMessage object for the message that needs to be replaced
                          nsIMsgSendListener                **aListenerArray) = 0;
- an array of listeners for the send operation. this can be nsnull if you want to do the delivery operation "blind"

Если javascript, то можно попробовать http://developer.mozilla.org/en/docs/Setting_up_extension_development_environment
А если C++ - не знаю

JavaScript, JavaSciprt
в это расширение входит "отладчик"? Venkman, в котором нету кнопки "пропарсить? скопилировать" может он конечно себя странно в Thunderbird ведет, а может и сам по себе такой. х.з.