如何获得调试Windows Haxe的错误行?

How can I get the error line debugging Haxe for windows?

我正在FlashDevelop中使用Haxe w / HaxeFlixel构建游戏,目前针对Windows平台。

当我在控制台中收到错误消息时,我想知道我是否也可以获得错误行(如flash一样)。

我只得到这样的东西

Error: Null Object Reference

我正在使用NME命令行nme test windows -debug进行编译


我将此问题发布在了Haxe Google Group上,这是hxcpp的创建者Hugh的"正式答案":

Hi, There is a bug in the 3.0 HXCPP version that prevents the correct
stack dump in debug mode in this case. This is fixed in the SVN
version. You can also attach visual studio and put a function break
point in"hx::CriticalError" and examine the stack there.

Hugh

下一版本的hxcpp将解决此问题。


尝试从cmd运行。 我敢肯定,异常信息将被打印在那里。 并且不要忘记设置" -debug"模式。


您是否尝试过将以下行添加到项目文件中?

1
2
3
<haxedef name="HXCPP_STACK_TRACE" />
<haxedef name="HXCPP_STACK_LINE" />
<haxedef name="HXCPP_DEBUG_LINK" />

我有同样的问题,但是在Linux下-http://www.nme.io/community/forums/general-discussion/how-get-stack-trace-if-segmentation-fault-ocured-cpp-target/