I have a windows phone 8 application and wish to create a console window for debug output purpose.
I found this link which basically use DllImport to get AllocConsole() from kernel32.dll.
Is there an easier way? Say, is there any c# function already provided so I don’t have to DllImport?
How about the debug output window in Visual Studio. Never used it. Am I supposed to use it instead of creating a console?
You can’t access the Console from Windows Phone. You can write to the debug window using
System.Diagnostics.Debug.WriteLine(). Of course this only works if you’ve got the debugger attached…