Home > Article > Development Tools > How to debug asp with vscode
1. Install the "IIS Express" extension. If successful, you will be prompted to help you install the "IIS Express" program;
2. Open the "IIS Express" program "applicationhost.config" file, the path is: C:\Users\{{username}}\Documents\IISExpress\config;
3. Find the following content and set the default homepage
<defaultDocument enabled="true"> <files> <add value="index.asp" /> <add value="Default.htm" /> <add value="index.htm" /> <add value="index.html" /> <add value="iisstart.htm" /> <add value="default.aspx" /> </files> </defaultDocument>
4. Find the following content and enable directory browsing
<directoryBrowse enabled="false" />
5. In the "1dcc4c920d99d48189de261dfba48f61" node, add the following red code to enable the parent path
<asp enableParentPaths=”true” scriptErrorSentToBrowser=”true”> <cache diskTemplateCacheDirectory=”” /> <limits /> </asp>
6. Basic settings When finished, press "Ctrl Shift P" and enter "IIS Express: Start Website" to run and debug.
Recommended tutorial: vscode tutorial
The above is the detailed content of How to debug asp with vscode. For more information, please follow other related articles on the PHP Chinese website!