Miscellaneous Debris

Avner Kashtan's Frustrations and Exultations

Exposing add-in errors in VSTO for Word 2007

One of the most annoying things about writing add-ins for Office is that it tends to swallow any and all errors that occur. All exceptions are silently thrown into the trash heap without even a statusbar flag. Nothing. This meant that we often had to add messageboxes for debugging, or Debugger.Launch to see what's going on.

At first I thought that Word 2007 was no different, but then I was idly browsing through the Word Options dialog and discovered a wonderful prize - a checkbox called "Show add-in user interface errors". Quickly checked and lo and behold - exceptions in my code are shown by Word! Life is good again!

So in case you've missed it too (and it's easy to miss), it's under the Office/File menu -> Word (or Excel) Options -> Advanced:

 

Enjoy!

Posted: Jan 21 2007, 06:10 PM by Avner Kashtan | with 7 comment(s)
Filed under: ,

Comments

Jose Ayala said:

I got a trouble, each time that i try to install an add-in (built by myself) it doesnt add to the word 2007 add-ins because it doesn charge well and this failed in execution time (this was the error). But when I built my solution in .NET it works very well...can anybody help me???

# February 23, 2007 5:46 PM

trumaresponsebraincns said:

<a href="httpwwwenubrplacnpage72html">pediatricrehabilitationmarltonnj</a> pediatricrehabilitationmarltonnj,<a href="httpwwwenubrplacnpage72html">advancednursepediatricpractitioners</a> advancednursepediatricpractitioners,<a href="httpwwwenubrplacnpage73html">lostintranslationparty</a> lostintranslationparty,<a href="httpwwwenubrplacnpage65html">whatkoreanmusicsoundslike</a> whatkoreanmusicsoundslike,<a href="httpwwwenubrplacnpage54html">client-centeredtheraoywithdiversepopulations</a> client-centeredtheraoywithdiversepopulations,<a href="httpwwwenubrplacnpage66html">prognosisofneardrowning</a> prognosisofneardrowning,<a href="httpwwwenubrplacnpage59html">doelbelgie</a> doelbelgie,<a href="httpwwwenubrplacnpage65html">whatkoreanmusicsoundslike</a> whatkoreanmusicsoundslike,<a href="httpwwwenubrplacnpage75html">controlforredthreadinlawns</a> controlforredthreadinlawns,<a href="httpwwwenubrplacnpage75html">whatislimeforlawns</a> whatislimeforlawns,

# August 1, 2007 7:26 PM

marklaytonbigbarelakeca said:

<a href="httpwwwpscxzkhrcnpage14html">hitleryouthcommitment</a> hitleryouthcommitment,<a href="httpwwwpscxzkhrcnpage14html">howdidhitlerstartwar</a> howdidhitlerstartwar,<a href="httpwwwpscxzkhrcnpage18html">upsdeliveryofwiistowalmart</a> upsdeliveryofwiistowalmart,<a href="httpwwwpscxzkhrcnpage29html">nascarmechanicschool</a> nascarmechanicschool,<a href="httpwwwpscxzkhrcnpage14html">hitlerwritingaboutdogtraining</a> hitlerwritingaboutdogtraining,<a href="httpwwwpscxzkhrcnpage19html">microsoftoffice2003basicoemactivationkey</a> microsoftoffice2003basicoemactivationkey,<a href="httpwwwpscxzkhrcnpage21html">columbusohiozipcode</a> columbusohiozipcode,<a href="httpwwwpscxzkhrcnpage29html">32mginnascarsmokeycook</a> 32mginnascarsmokeycook,<a href="httpwwwpscxzkhrcnpage29html">nascarmechanicschool</a> nascarmechanicschool,<a href="httpwwwpscxzkhrcnpage19html">visualbasictoautosaveworddocumenttofolder</a> visualbasictoautosaveworddocumenttofolder,

# August 1, 2007 9:29 PM

Quansinia said:

Hramos milusto http://nesdjusi.op

# December 30, 2009 6:59 PM

Phomiachoitty said:

Jechin. Khe muso http://khemuso.zh

# January 1, 2010 3:51 AM

Meatheangeree said:

immense  kaiser-permanente-p.groupsite.com - about kaiser permanente becton  

# November 23, 2010 5:24 PM

Meatheangeree said:

drexel  <a href="http://kaiser-permanente-p.groupsite.com">about kaiser permanente</a> mumia  

# November 24, 2010 1:32 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)