我在FlashDevelop中構建了一個使用Haxe w/HaxeFlixel的遊戲,目前針對Windows平臺。我怎樣才能得到錯誤行調試Haxe的Windows?
雖然我在控制檯中收到錯誤消息,但我想知道是否也可以獲取錯誤行(就像flash一樣)。
我只從休得到像這樣ATM
Error: Null Object Reference
我與NME命令行編譯nme test windows -debug
我在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'模式。