Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 628991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:41:48+00:00 2026-05-13T19:41:48+00:00

I’m trying to create a sidebar gadget without the use of Visual Studio. I’ve

  • 0

I’m trying to create a sidebar gadget without the use of Visual Studio. I’ve looked around for ways to debug them, but everything says that the Visual Studio JIT debugger is the only way to do it.

Has anyone been able to debug sidebar gadgets without Visual Studio?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:41:48+00:00Added an answer on May 13, 2026 at 7:41 pm

    For years, I didn’t use Visual Studio to work on Gadgets. There are a couple of ways you can debug gadgets without it, just not as extensively. For instance, you can’t use the debugger; command without a proper debugger attached to the process. What you can do is use a program like DebugView to catch messages output by the System.Debug.outputString() method:

    function test ()
    {
        System.Debug.outputString("Hello, I'm a debug message");
    }
    

    This allows you to output variable dumps and other useful tidbits of information at certain stages of your code, so you can track it however you like.

    As an alternative, you can roll your own debugging/script halting messages using window.prompt(). alert() was disabled for gadgets and confirm() is overridden to always return true, but they must have overlooked prompt().

    function test ()
    {
         // execute some code
    
         window.prompt(someVarToOutput, JSON.stringify(someObjectToExamine));
    
         // execute some more code
    }
    

    The JSON.stringify() method really helps out if you want to examine the state of an object during code execution.

    Instead of window.prompt, you can also use the VBScript MsgBox() function:

    window.execScript( //- Add MsgBox functionality for displaying error messages
          'Function vbsMsgBox (prompt, buttons, title)\r\n'
        + ' vbsMsgBox = MsgBox(prompt, buttons, title)\r\n'
        + 'End Function', "vbscript"
    );
    
    vbsMsgBox("Some output message", 16, "Your Gadget Name");
    

    Finally, you can catch all errors with your script using the window.onerror event handler.

    function window.onerror (msg, file, line)
    {
        // Using MsgBox
        var ErrorMsg = 'An error has occurred'+(line&&file?' in '+file+' on line '+line:'')+'.  The message returned was:\r\n\r\n'+ msg + '\r\n\r\nIf the error persists, please report it.';
        vbsMsgBox(ErrorMsg, 16, "Your Gadget Name");
    
        // Using System.Debug.outputString
        System.Debug.outputString(line+": "+msg);
    
        // Using window.prompt
        window.prompt(file+": "+line, msg);        
    
        // Cancel the default action
        return true;
    }
    

    The window.onerror event even lets you output the line number and file (only accurate with IE8) in which the error occurred.

    Good luck debugging, and remember not to leave in any window.prompts or MsgBoxes when you publish your gadget!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
I am trying to loop through a bunch of documents I have to put
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.