[VSTO] Debugging VSTO applications

One very useful trick to debug VSTO applications is this “cheeky” flag: VSTO_SUPPRESSDISPLAYALERTS. It’s a environment variable to enable error messages about dodgy exceptions, like COM exceptions. For example, I was getting a strange behavior in my Office Word application when I was trying to add a new Plain Text Control:

PlainTextControl

However, my VSTO application didn’t show me any messages or warning about any error, until I added this environment variable VSTO_SUPPRESSDISPLAYALERTS to my system with value 0. Next, I got this message:

ComException

It means that you can’t set a Plain Text Control title bigger than 64 characters.

Don’t forget this friendly helper :)

Publicado 02 marzo 10 08:32 por rtebar
Archivado en:

Comentarios

# Curso Web 2.0 » Blog Archive » La Bloguera 3 March 2010 said on marzo 3, 2010 19:34:

PingBack desde http://www.iexpertos.com/icap/wordpress/?p=183

No se permiten comentarios de usuarios anónimos

About rtebar

Microsoft Dynamics CRM Developer and Consultant in Alfapeople Ltd (London)

Search

Go

Sindicación