How to get Debug.WriteLine to work in custom build configuration?

Viewed 431

Using

this.Database.Log = s => System.Diagnostics.Debug.WriteLine(s);

in the ctor of my data context class only works (prints queries to the output window) in Debug build configuration.

What do I need to do to get it to print to the output window in Visual Studio for a custom build configuration (not Debug)?

1 Answers
Related