Output from Log to debugger

The messages, warnings and errors that come from the log can now be
forwarded to the debugger output. This is currently only supported for
Visual Studio. (Feedback welcome for other ide's.)
Also added some output in the first test.