tags:

views:

137

answers:

2

Hi,

I have various Debug.WriteLine messages, I tried to see those messages using export MONO_DEBUG_LEVEL=debug, but I end up getting other irrelevant debug messages which was not outputted by my code.

What should I do to see the debug messages?

I'm using Linux :) Thanks.

A: 

Debug messages are probably streamed to the error output (stderr). You can stream those to the standard output (stdout) by appending 2>&1. You can obviously do the reverse with 1>&2 as 1 refers to stdout and 2 to stderr.

Summary For piping stderr to stdout:

mono <youapp> 2>&1

For piping stderr and stdout to stdout:

mono <youapp> &>&1
Dykam
nubela
Hmm, can't test it at the moment...
Dykam
A: 

run it with the wrapper mono --debug

nubela