我怎样才能得到错误行调试Haxe的Windows?

问题描述:

我在FlashDevelop中构建了一个使用Haxe w/HaxeFlixel的游戏,目前针对Windows平台。我怎样才能得到错误行调试Haxe的Windows?

虽然我在控制台中收到错误消息,但我想知道是否也可以获取错误行(就像flash一样)。

我只从休得到像这样ATM

Error: Null Object Reference

我与NME命令行编译nme test windows -debug

我张贴这个问题上Haxe Google Group这里的“官方答案” ,hxcpp的创建者:

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的下一个版本将解决此问题。

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

<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/

尝试从CMD运行。我相信,例外信息将被打印在那里。别忘了设置'-debug'模式。