Browse Source

Show exception details in debugger output

杨博 11 years ago
parent
commit
78c0414d9c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      std/cs/internal/Exceptions.hx

+ 2 - 1
std/cs/internal/Exceptions.hx

@@ -30,6 +30,7 @@ import cs.system.Exception;
 }
 
 //should NOT be usable inside haxe code
+@:classCode('override public string Message{ get{ return this.toString(); } }')
 @:nativeGen @:keep @:native("haxe.lang.HaxeException") private class HaxeException extends Exception
 {
 	private var obj:Dynamic;
@@ -62,4 +63,4 @@ import cs.system.Exception;
 
 		return new HaxeException(obj);
 	}
-}
+}