请问我把代码发布在本地机器的IIS上,然后在IIS上浏览网站,请问可以再IIS上调试本地代码吗?不是在VS上按F5的那种调试,是在IIS上调试,因为本地运行代码程序没错,但是在IIS浏览网站有错,所以想在IIS上调试代码。用的是VS2010

解决方案 »

  1.   

    debug  web.config文件  还有就是500显示设置,iis上可以改 改成本地和远程均显示详细错误信息
      

  2.   

    可以,用Attach to process就可以了。
      

  3.   

    部署到其它机器上还可以用remote debugger,只要在服务器上运行remote debugger就可以了Attach to process要找对进程IIS5好像是asp_wp.exe,II6和IIS7 是w3wp.exewebsite的project要在web.config中设置成
    <compilation 
       debug="true" 
    ></compilation>
    Web Project的Project要用debug编译
      

  4.   

    对了Attach to process在Debug菜单下
      

  5.   

    web.config
    <configuration>
    <system.web>
        <pages>
          <namespaces autoImportVBNamespace="true" />
        </pages>
        <httpRuntime executionTimeout="1800" maxRequestLength="52429" appRequestQueueLimit="300" useFullyQualifiedRedirectUrl="false" /> 
        <compilation debug="true" strict="false" explicit="true" defaultLanguage="vb" />2:iis 我的是7.5 》 iis》指定网站》错误页》编辑功能设置》选择 详细信息》保存
      

  6.   


    http://www.codeproject.com/Articles/37182/Debug-your-ASP-NET-Application-while-Hosted-on-IIS