Vista Gadget Debugging

Προσπαθούσα να φτιάξω ένα Vista Gadget χθες το βράδυ, και διαπίστωσα ότι το alert της Javascript δεν παίζει… Συνεπώς, μην έχοντας κάποιο περιβάλλον για την ανάπτυξη gadget, έψαξα για πιο ‘old-school’ μεθόδους. Βρήκα αυτό το εξαιρετικό εργαλείο της SysInternals, το DbgView, το οποίο μπορείτε να το κατεβάσετε από εδώ
http://www.microsoft.com/technet/sysinternals/utilities/debugview.mspx
Όπως λέει και η περιγραφή του, μπορεί να ‘πιάσει’ debug information από διάφορες πηγές

Under Windows 95, 98, and Me DebugView will capture output from the following sources:

Win32 OutputDebugString

Win16 OutputDebugString

Kernel-mode Out_Debug_String

Kernel-mode _Debug_Printf_Service

Under Windows NT, 2000, XP, Server 2003 and Vista DebugView will capture:

Win32 OutputDebugString

Kernel-mode DbgPrint

All kernel-mode variants of DbgPrint implemented in Windows XP and Server 2003

DebugView also extracts kernel-mode debug output generated before a crash from Window NT/2000/XP crash dump files if DebugView was capturing at the time of the crash.

Έτσι λοιπόν, χρησιμοποιώντας την System.Debug.outputString(string message) άπό το Javascript source του gadget, κατάφερα να κάνω output διάφορες πληροφορίες, τις οποίες και μετά παρατήρησα από το παράθυρο του DbgViewSmile

Όχι και η καλύτερη μέθοδος debugging, αλλά, μέχρι στιγμής, it’s better than nothing Smile

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s