Open up the main javascript file in Visual Studio.
Attach to Sidebar Process
Next we’ll need to attach to the specific sidebar process for your gadget.
Now comes the critical step… click to set a breakpoint just to the left of the white area…
Important Notes
Happy debugging!