How to: View Script Documents (JavaScript)
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Server-side script files are visible in Solution Explorer. Client-side script files are visible only when you are in debug mode or break mode. Client-side script files appear in the Script Documents node.
For some application types that dynamically generate pages, it is easier to enter break mode and debug when you set a breakpoint from a script document that is loaded in the browser. Similarly, you can add the debugger
statement from a loaded script document to enter break mode. This article shows how to view these documents.
Note
Previous to Visual Studio 2012, client-side script files generated from server-side script appeared in the Script Explorer window.
To view a server-side script document
In Solution Explorer, open the <Website Pathname> node.
Double-click the script file that you want to view.
The server-side script file opens in a source window.
To view a client-side script document
In Solution Explorer, open the Script Documents node.
Double-click the script file that you want to view.
The client-side script file opens in a source window.