无法将节点检查器带到IIS上托管的express express / nodejs应用程序

时间:2015-07-30 09:20:12

标签: node.js iis express mean.io iisnode

我使用IISNode在IIS上托管了我的express / nodejs应用程序。

这就是我的web.config看起来的样子:

<configuration>
<appSettings>
    <add key="NODE_ENV" value="production" />
</appSettings>
  <system.webServer>

    <!-- indicates that the hello.js file is a node.js application 
    to be handled by the iisnode module -->

    <handlers>
      <add name="iisnode" path="server/app.js" verb="*" modules="iisnode" />
    </handlers>


     <iisnode loggingEnabled="false" debuggingEnabled="true" debuggerPathSegment="debug" />
    <rewrite>
      <rules>
        <clear />
        <rule name="Debug" patternSyntax="Wildcard" stopProcessing="true">
          <match url="server/app.js/debug*" />
          <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
          <action type="None" />
        </rule>
        <rule name="app" patternSyntax="Wildcard">
          <match url="*" negate="false" />
          <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
          <action type="Rewrite" url="server/app.js" />
        </rule>
      </rules>
    </rewrite>
        <directoryBrowse enabled="true" />


  </system.webServer>

</configuration>

当我在Chrome中输入http://localhost:6050/server/app.js/debug/网址时,我只看到这样一个面板:

enter image description here

0 个答案:

没有答案