浏览代码

Show exception details in debugger output

杨博 11 年之前
父节点
当前提交
78c0414d9c
共有 1 个文件被更改,包括 2 次插入1 次删除
  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);
 	}
-}
+}