浏览代码

also trace all arguments for native_trace

Nicolas Cannasse 12 年之前
父节点
当前提交
8eab28c36c
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      std/haxe/Log.hx

+ 4 - 2
std/haxe/Log.hx

@@ -45,8 +45,10 @@ class Log {
 	public static dynamic function trace( v : Dynamic, ?infos : PosInfos ) : Void {
 		#if flash
 			#if (fdb || native_trace)
-		var pstr = infos == null ? "(null)" : infos.fileName+":"+infos.lineNumber;
-		untyped #if flash9 __global__["trace"] #else __trace__ #end(pstr+": "+flash.Boot.__string_rec(v,""));
+		var pstr = infos == null ? "(null)" : infos.fileName + ":" + infos.lineNumber;
+		var str = flash.Boot.__string_rec(v, "");
+		if( infos != null && infos.customParams != null ) for( v in infos.customParams ) str += "," + flash.Boot.__string_rec(v, "");
+		untyped #if flash9 __global__["trace"] #else __trace__ #end(pstr+": "+str);
 			#else
 		untyped flash.Boot.__trace(v,infos);
 			#end