If you need to do this for debugging purposes, I would recommend using OutputDebugString
. Anything you output with this will appear in the Debug Output dialog in Visual Studio when it's attached to your Windows Phone app.
Make sure you attach the native debugger for this to work.