在Visual Studio 2008中调试Web应用程序

时间:2022-01-16 02:56:30

When my colleague debugs a web application in his visual studio instance his output window streams all of the assemblies that are being compiled, (at least I believe that is what it's doing) but mine does not. I do see the text "Ready" flashing down in the status bar intermittently which I believe is something similar to what is being dumped to my colleagues output window. Does anyone know what switch I need to flip to get this working on my instance? Both of our output windows are configured to "show output from:" Debug. The reason I'm asking all of this is because this particularly smelly application I've been asked to help on takes something like two or three minutes for it to "spin up" before I actually see an explorer instance for this site and I was thinking that this output information might be able to help me figure out why it's taking so long to "spin up".

当我的同事在他的visual studio实例中调试Web应用程序时,他的输出窗口会流式传输所有正在编译的程序集(至少我相信它正在做的事情),但我的不是。我确实看到文本“Ready”在状态栏中间歇性地闪烁,我认为这类似于转储到同事输出窗口的内容。有谁知道我需要翻转什么开关才能让我的实例工作?我们的两个输出窗口都配置为“显示输出:”调试。我问这一切的原因是因为我被要求提供帮助的这个特别臭的应用程序需要花费两三分钟的时间来“旋转”才能实际看到此站点的探索器实例并且我是认为这些输出信息可能能够帮助我弄清楚为什么需要这么长时间来“旋转”。

3 个解决方案

#1


You want to make sure to use the Verbose (or something else more than Minimal) setting for build output. Then simply make sure your output window is open, and set the dropdown to "Build".

您希望确保使用Verbose(或其他超过Minimal的设置)进行构建输出。然后只需确保输出窗口打开,并将下拉列表设置为“Build”。

Tools->Options->Projects and Solutions->Build and Run->MSBuild project build output verbosity dropdown

工具 - >选项 - >项目和解决方案 - >构建和运行 - > MSBuild项目构建输出详细程度下拉列表

#2


Another thing I have noticed, when 'Building' a web site (as opposed to a web application), the build process takes a long time compared to the web application. I think the slow build speed is just a byproduct of how a web site is compiled, not the code itself.

我注意到的另一件事是,当“构建”一个网站(而不是一个Web应用程序)时,与Web应用程序相比,构建过程需要很长时间。我认为构建速度慢只是网站编译方式的副产品,而不是代码本身。

Also, usually those dlls you see flashing in the ready field is the debug assemblies/symbol files/etc being loaded into the debugger and everything being attached to processes...

此外,通常您在就绪字段中看到闪烁的那些dll是调试程序集/符号文件/等被加载到调试器中并且所有内容都附加到进程...

#3


I figured out that if I right click in console area of the Output window when Show out from: "Debug" is selected that their are 6 different outputs available to select, several of them were not selected on my machine but they were selected on my colleagues machines, now I am receiving the Output I was looking for. As for other problem, I am now looking into it, looks like a lot of HttpCompileExceptions and NullReferenceExceptions are being thrown when "spinning up"... interesting, not sure if this is normal behavior or not.

我想通过如果我右键单击输出窗口的控制台区域,当显示出来时:“调试”选择它们有6个不同的输出可供选择,其中有几个未在我的机器上被选中但是它们被选中了我的同事机器,现在我收到我正在寻找的输出。至于其他问题,我现在正在研究它,看起来很多HttpCompileExceptions和NullReferenceExceptions在“旋转”时被抛出......有趣的是,不确定这是否是正常行为。

#1


You want to make sure to use the Verbose (or something else more than Minimal) setting for build output. Then simply make sure your output window is open, and set the dropdown to "Build".

您希望确保使用Verbose(或其他超过Minimal的设置)进行构建输出。然后只需确保输出窗口打开,并将下拉列表设置为“Build”。

Tools->Options->Projects and Solutions->Build and Run->MSBuild project build output verbosity dropdown

工具 - >选项 - >项目和解决方案 - >构建和运行 - > MSBuild项目构建输出详细程度下拉列表

#2


Another thing I have noticed, when 'Building' a web site (as opposed to a web application), the build process takes a long time compared to the web application. I think the slow build speed is just a byproduct of how a web site is compiled, not the code itself.

我注意到的另一件事是,当“构建”一个网站(而不是一个Web应用程序)时,与Web应用程序相比,构建过程需要很长时间。我认为构建速度慢只是网站编译方式的副产品,而不是代码本身。

Also, usually those dlls you see flashing in the ready field is the debug assemblies/symbol files/etc being loaded into the debugger and everything being attached to processes...

此外,通常您在就绪字段中看到闪烁的那些dll是调试程序集/符号文件/等被加载到调试器中并且所有内容都附加到进程...

#3


I figured out that if I right click in console area of the Output window when Show out from: "Debug" is selected that their are 6 different outputs available to select, several of them were not selected on my machine but they were selected on my colleagues machines, now I am receiving the Output I was looking for. As for other problem, I am now looking into it, looks like a lot of HttpCompileExceptions and NullReferenceExceptions are being thrown when "spinning up"... interesting, not sure if this is normal behavior or not.

我想通过如果我右键单击输出窗口的控制台区域,当显示出来时:“调试”选择它们有6个不同的输出可供选择,其中有几个未在我的机器上被选中但是它们被选中了我的同事机器,现在我收到我正在寻找的输出。至于其他问题,我现在正在研究它,看起来很多HttpCompileExceptions和NullReferenceExceptions在“旋转”时被抛出......有趣的是,不确定这是否是正常行为。