Debug/Trace failing to write to Output windows in VSIX project
Is there any reason, maybe a known bug or missing SDK that would cause debug and trace to stop working in the following environment:
I recently formated my workstation. Fresh install of VS2010 Ultimate in a solution I've been working with for a month. It contains an exe and a vsix as it's outputs. debug and trace work in the exe but when debugging the vsix nothing is written to the output window. I have the VS SDK installed. I've used Import/Export settings to reset the environment. 开发者_如何学运维I've disabled all extensions (from the extension manager). I also tried deleting the .suo files in the solution.
- Do you have Resharper installed by any chance?
- When you break in the debugger and put System.Diagnostics.Debug.Listeners (or same for Trace) in the Watch window, what do you see?
- Does doing System.Diagnostics.Debug.Listeners.Add(new DefaultTraceListener()) help?
- Does adding a new TextWriterTraceListener work?
精彩评论