{"id":5114,"date":"2007-03-08T17:56:00","date_gmt":"2007-03-08T17:56:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2007\/03\/08\/jscript-debugging-in-visual-web-developer-2005\/"},"modified":"2007-03-08T17:56:00","modified_gmt":"2007-03-08T17:56:00","slug":"jscript-debugging-in-visual-web-developer-2005","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/jscript-debugging-in-visual-web-developer-2005\/","title":{"rendered":"JScript Debugging in Visual Web Developer 2005"},"content":{"rendered":"<p><P class=\"MsoNormal\"><FONT face=\"Calibri\" size=\"3\">A lot of people have asked about how to debug JScript in Visual Web Developer 2005. You need to know a few tricks before you can set a breakpoint on an ASPX document (Note that the experience is vastly improved in our Orcas March CTP and I will be making a separate blog post on that soon).<\/FONT><\/P>\n<P class=\"MsoNormal\"><FONT face=\"Calibri\" size=\"3\">&nbsp;<\/FONT><FONT face=\"Calibri\" size=\"3\">1. Enable client script debugging on IE:<\/FONT><\/P>\n<P class=\"MsoNormal\"><IMG src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Internet%20Options.jpg\"><\/P>\n<P class=\"MsoNormal\"><FONT face=\"Calibri\" size=\"3\"><\/FONT>&nbsp;<\/P>\n<P class=\"MsoNormal\"><FONT face=\"Calibri\" size=\"3\">2. Start debugging in Visual Web Developer (F5)<\/FONT><\/P>\n<P class=\"MsoNormal\"><IMG src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/JScript%20Start%20Debug.jpg\"><\/P>\n<P class=\"MsoNormal\"><FONT face=\"Calibri\" size=\"3\"><\/FONT>&nbsp;<\/P>\n<P class=\"MsoNormal\"><FONT face=\"Calibri\" size=\"3\">3. Bring up the Script Explorer window (Ctrl+Alt+N):<\/FONT><\/P>\n<P class=\"MsoNormal\"><IMG src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/SriptExplorer.jpg\"><\/P>\n<P class=\"MsoNormal\">&nbsp;<\/P><FONT face=\"Calibri\">\n<P class=\"MsoNormal\"><FONT size=\"3\">4. Once the Script Explorer window is opened, double click on the run-time document that you want to debug:<\/FONT><\/P>\n<P class=\"MsoNormal\"><FONT size=\"3\"><IMG src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/SriptExplorer2.jpg\"><\/FONT><\/P>\n<P class=\"MsoNormal\"><FONT size=\"3\"><\/FONT>&nbsp;<\/P>\n<P class=\"MsoNormal\"><FONT size=\"3\">5. Now you can set a breakpoint in the run-time document:<\/FONT><\/P>\n<P class=\"MsoNormal\"><IMG src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/JScript%20BP.jpg\"><\/P>\n<P class=\"MsoNormal\">&nbsp;<\/P>\n<P class=\"MsoNormal\"><FONT size=\"3\">The&nbsp;script execution will pause on the breakpoint when you execute the script. You can then examine objects at this point of the execution. For example, you can bring up the Quick Watch window and examine the data of the document object.<\/FONT><\/P>\n<P class=\"MsoNormal\"><IMG src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Jscript%20Quick%20Watch.jpg\"><\/P>\n<P class=\"MsoNormal\">&nbsp;<\/P>\n<P class=\"MsoNormal\"><FONT size=\"3\">If you need to debug something during a page load, you can use the debugger statement:<\/FONT><\/P>\n<P class=\"MsoNormal\"><IMG src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/JScript%20Debugger%20Statement.jpg\"><\/P>\n<P class=\"MsoNormal\"><FONT size=\"3\"><\/FONT>&nbsp;<\/P>\n<P class=\"MsoNormal\"><FONT size=\"3\">Enjoy!<\/FONT><\/P>\n<P class=\"MsoNormal\"><FONT size=\"3\"><STRONG>Barry Tang<BR><\/STRONG>Software Design Engineer<BR>Visual Studio Web Tools<\/FONT><\/P>\n<P class=\"MsoNormal\"><FONT size=\"3\"><\/FONT>&nbsp;<\/P><\/FONT><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A lot of people have asked about how to debug JScript in Visual Web Developer 2005. You need to know a few tricks before you can set a breakpoint on an ASPX document (Note that the experience is vastly improved in our Orcas March CTP and I will be making a separate blog post on [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[4,31,7274,7272,147,7267,7268,7269],"class_list":["post-5114","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-net","tag-asp-net","tag-jscript","tag-tips-and-tricks","tag-visual-studio","tag-vwd","tag-web","tag-web-2-0"],"acf":[],"blog_post_summary":"<p>A lot of people have asked about how to debug JScript in Visual Web Developer 2005. You need to know a few tricks before you can set a breakpoint on an ASPX document (Note that the experience is vastly improved in our Orcas March CTP and I will be making a separate blog post on [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/5114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=5114"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/5114\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=5114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=5114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=5114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}