The gadgets are web applications that run through Sidebar of Windows Vista and Windows 7 its functionality can be as powerful as the creativity and experience of the developers are allowed, and the inclusion of JScript, Ajax and JQuery the scope of these applications will gradually increase.
Personally I think two of the main drawbacks to develop these applications is to have an idea that fits in a few pixels and perform debugging . How to make a post about the creative process to create a good gadget is more complicated for a single post, this time I start writing about the clearance process.
first thing to do is make the deployment the gadget you wish to debug for this Terea we use Visual Studio 2008 by the publication of the gadget in the folder of the default operating system that is hosting the gadgets, the which is located at:
·% USERPROFILE% \\ AppData \\ Local \\ Microsoft \\ Windows Sidebar \\ Gadgets (user gadgets)
·% system_root% \\ Program Files \\ Windows Sidebar \\ Gadgets (global gadgets)
So on gadget project, we click right and select the option Publish .
This window will show the publication in which we place on the path publication the installation path of the gadget and select the option Delete all existing files prior to publish .
Once publishing is complete, proceed to install the gadget in the Sidebar , which is done by right clicking on the sidebar area of \u200b\u200bthe desktop and selecting "Add gadgets ... and adding just published.
With the gadget and the Sidebar proceed to configure the browser to be enabled script debugging. Running Internet Explorer then , select the Tools option , followed by Internet Options and then the Advanced tab where uncheck the check Disable script debugging (other) .
now proceed to configure Visual Studio 2008 to start the purification process. To which place the necessary Point Break where we want to stop the execution of the application and then select the main menu Debug , followed by Attach to Process ...
This will window displays the currently available processes are running on your host operating system. In this window the process we referred to the gadget you wish to debug and is running in Windows Sidebar. Select the process that refers to the gadget and then we click on the Attach button .
Finally perform the necessary actions on the gadget that is in the sidebar to stop the application in the break points we have imposed.
Some link where you can find information about creating Gadget for Windows Sidebar:
http://msdn.microsoft.com/en-us/library/aa965850 (VS.85) . aspx
http://www.codeproject.com/KB/gadgets/DailyDilbert.aspx
http://www.codeproject.com/KB/gadgets/gadgettips.aspx