detroitpro
detroitpro

Reputation: 3913

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.

Upvotes: 1

Views: 576

Answers (1)

Omer Raviv
Omer Raviv

Reputation: 11827

  1. Do you have Resharper installed by any chance?
  2. When you break in the debugger and put System.Diagnostics.Debug.Listeners (or same for Trace) in the Watch window, what do you see?
  3. Does doing System.Diagnostics.Debug.Listeners.Add(new DefaultTraceListener()) help?
  4. Does adding a new TextWriterTraceListener work?

Upvotes: 1

Related Questions