Trace calls directly on flashplayer window

Hi there,

I just installed OpenFL (4.9.2) and Lime (4.0.3). I only want to build a flash target.

I’d like to be able to see the “trace” calls directly on the flashplayer, in my web browser, once I built my game. I know I could do that before. I looked into the forum and I saw that now the flag “-D haxetrace” should be added. So did I but I still can not see the output of my “trace” calls on the flashplayer window.

Is there something else I need to know to get this behaviour back?

Thanks,

Is that openfl test flash -Dhaxetrace, or <haxedef name="haxetrace" /> in the project.xml?

If you use project.xml, try <set name="haxe-trace" /> before <haxelib name="lime" /> or <haxelib name="openfl" />, or try it from the command-line

That should remove the -Dnative-trace define, which should allow the default Haxe trace behavior (which may vary based on debug or release?)

Thank you!!

Indeed, adding <set name="haxe-trace" /> before <haxelib name="openfl" /> in my project.xml file did solve my problem, I can now see my trace call directly on the flashplayer!

Thanks :smile: !

1 Like

You can also use this library to display traces on any platform.

1 Like