DebuggingJavascript/VB ScriptScriptProgram(ASP. NETArticle)
With the aboveDebuggingJavascript/VB ScriptScript program (ASPArticle)AndDebuggingJavascript/VB ScriptScript program (IEArticle)Basic, debuggingASP. NETInsideDHTMLThe script is simple.
Note::Visual StudioVersion is2008.
Debug on a published website
1.FollowDebuggingJavascript/VB ScriptScript program (IEArticle)OpenIEAndVisual StudioAttach to the correctIEInstance.
2. in Visual Studio , find the page you want to debug, for example, ie displays http: // localhost/training/test. aspx page , open test. Source Code of aspx .
3.Find the one you want to debugDHTMLSourceCode, Note that you cannot addRunat = "server"Mark the scripts because they are executed on the server. ClickF9(Thanks to netizensHuiTell me this tip ). As shown in:
4.BackIERun the command again.DHTMLThe script is ready, that is, the effect:
Debugging under developmentASP. NETWebsite scripts
If you haveASP. NETFull source code of the website (including solutions). SlnFile), it is easy to debug the script program:
1.Open. SlnFile, set the breakpoint on the script code to be debugged.
2.PressF5Start the website and execute the script code. At this time,Visual StudioThe execution of the script should be interrupted.