Skip to content

Instantly share code, notes, and snippets.

@atsushieno
Last active January 26, 2017 07:13
Show Gist options
  • Save atsushieno/d45b884f72455cf3b9b8e897a375456c to your computer and use it in GitHub Desktop.
Save atsushieno/d45b884f72455cf3b9b8e897a375456c to your computer and use it in GitHub Desktop.
~/Desktop$ cat x.cs
public class Test
{
public static void Main ()
{
throw new System.Exception ();
}
}
~/Desktop$ csc x.cs -debug:portable
Microsoft (R) Visual C# Compiler version 2.0.0.61205
Copyright (C) Microsoft Corporation. All rights reserved.
~/Desktop$ mono --debug x.exe
Unhandled Exception:
System.Exception: Exception of type 'System.Exception' was thrown.
at Test.Main () [0x00001] in /home/atsushi/Desktop/x.cs:5
[ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Exception of type 'System.Exception' was thrown.
at Test.Main () [0x00001] in /home/atsushi/Desktop/x.cs:5
~/Desktop$ rm x.pdb
~/Desktop$ mono --debug x.exe
Unhandled Exception:
System.Exception: Exception of type 'System.Exception' was thrown.
at Test.Main () [0x00001] in <7e598ffd03d14b1188aa6f5ddb9b9d3d>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Exception of type 'System.Exception' was thrown.
at Test.Main () [0x00001] in <7e598ffd03d14b1188aa6f5ddb9b9d3d>:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment