Home >Development Tools >VSCode >How to debug asp with vscode

How to debug asp with vscode

王林
王林Original
2020-04-15 14:53:296789browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn