问题描述
我不能,因为我没有使用Adobe IDE使用跟踪,当我尝试查看我的异常错误,我似乎无法得到完整的错误消息,我只能似乎得到了ErrorID中。举例来说,如果我有一个1069的错误,我应该看到类似:
I can't use trace because I'm not using an Adobe IDE and when I try to view my exception errors, I can't seem to get the full error message, I only seem to get the "errorID". For example, if I had a 1069 error, I should see something like:
错误#1069:没有找到产权数据的 X 并 没有默认值。
但是相反,我看到这...
But instead I see this...
的ReferenceError:错误#1069
这是我的code ...
This is my code...
try
{
//error gets thrown here
}
catch(e:Error)
{
extTrace('Error: '+e.toString());//I also tried e.message, e.name & ObjectUtil.toString(e.getStackTrace())
}
这仅仅是一个功能简化登录到控制台。我不知道这是否是对这个问题还是不是这个原因,由于CONSOLE.LOG(''),但无论...
This is just a function for simplifying logging to console. I'm not sure if it's the reason for the issue or not, due to console.log(''), but whatever...
private function extTrace(traceString:String):void
{
ExternalInterface.call("console.log('"+traceString+"')");
}
我也试过e.message,e.name和放大器; ObjectUtil.toString(e.getStackTrace())
I also tried e.message, e.name & ObjectUtil.toString(e.getStackTrace())
推荐答案
要获得完整的错误信息,你需要测试在调试模式;它看起来像你的释放,这消除了大量的调试符号正在运行
To get the full error message, you need to test in debug mode; it looks like you're running in release, which removes a lot of debug symbols
这篇关于获取使用Flex完整异常错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!