Debugging program which target the flash platform is very easy, you just need the FlashDevelop software and download the flash player with the debug support
a step by step procedure to debug the "FLASH" target
- Open the project
- "Menu" »"Debug" »"Start Remote Session"
- Make sure you are using the "debug" configuration, and then press the "Play / Run" button
- Set's your breakpoints, inspect variables, etc is a snap..
If we are debugging windows target (hxcpp) this will introduce different approach, FlashDevelop currently working to support it
But for those who like to use the command prompt, here is a step by step procedure..
- run "haxelib install hxcpp-debugger"
- on your project's application.xml add
<haxedef name="HXCPP_DEBUGGER" />
<haxelib name="hxcpp-debugger" /> - on your MAIN class file, add the import: "import debugger.Local;"
- on main haxe file, you need to add the function call
new Local(true); - run the program on your command prompt:
lime test window - It will run and then hit a default breakpoint, from there you should type "help" and read the documentation to proceed
- nice........
Haxe is quite mature, but it's cross platform nature made the debugging process which should be simple, becomes quite a challenging process, OpenFL supports html5 target, next i will try to learn on mapping js to haxe's source code using the technology source-code mappings on chrome and firefox browser..
Tidak ada komentar:
Posting Komentar