View unanswered posts | View active topics


Reply to topic  [ 8 posts ] 
Traces not showing in HaXe NME Windows build... 
Author Message
Member

Joined: Wed Jan 05, 2011 1:22 pm
Posts: 8
Post Traces not showing in HaXe NME Windows build...
We're working on a multiplatform game for Android and iOS in HaXe / NME, and are building to the Windows / C++ target for debug and testing. Everything pretty much works perfectly, except that trace output only appears in FlashDevelop's output window once the built app has been closed?

Does anyone know if there's a way to get the app to send its traces to FD's output window in real time?


Wed Jul 11, 2012 9:33 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10745
Location: Paris, France
Post Re: Traces not showing in HaXe NME Windows build...
Weird thing is that it's using the regular process runner which is used everywhere else in FD. I've tried to workaround it but I can't seem to find a way to get the output progressively...

Works fine when executed from a command prompt though.


Thu Jul 12, 2012 6:10 pm
Profile WWW
Member

Joined: Wed Jan 05, 2011 1:22 pm
Posts: 8
Post Re: Traces not showing in HaXe NME Windows build...
Forgive my ignorance, but how would I execute the debug build from a command prompt?

I presume you don't mean just navigating to the compiled exe from a dos prompt and running it?


Fri Jul 13, 2012 11:51 am
Profile
Member

Joined: Mon Sep 20, 2010 8:55 am
Posts: 86
Post Re: Traces not showing in HaXe NME Windows build...
Command prompt ("DOS prompt") is always an option. However, you can automate it with FD help.
Put this into your Project -> Properties -> Run Custom Command...
Code:
haxelib run nme run "Project.nmml" windows -debug

When you run your project, you'll get a separate console window with all the output.


Fri Jul 13, 2012 3:19 pm
Profile
Member

Joined: Wed Jan 05, 2011 1:22 pm
Posts: 8
Post Re: Traces not showing in HaXe NME Windows build...
Aha.. excellent I'll give it a try. thanks.


Fri Jul 13, 2012 3:41 pm
Profile
Member

Joined: Thu May 15, 2008 7:36 pm
Posts: 605
Location: Baltimore, MD
Post Re: Traces not showing in HaXe NME Windows build...
Facing the same issue.
In FD 4.0 using the command line was an okay work-around, but would love to have it in output.
Tried it in FD 4.1 (dev) and I get no output when I use trace(); it all stays buffered until I close the program.

_________________
http://tronster.com


Sun Aug 05, 2012 11:47 pm
Profile WWW
Member

Joined: Thu May 15, 2008 7:36 pm
Posts: 605
Location: Baltimore, MD
Post Re: Traces not showing in HaXe NME Windows build...
So compiling for windows still creates an issue, but I discovered I can receive Flash traces if I use Lib.trace().
My issue was omitting Lib., because while trace() compiles; it doesn't give you output in Flash.

_________________
http://tronster.com


Mon Aug 06, 2012 1:58 am
Profile WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10745
Location: Paris, France
Post Re: Traces not showing in HaXe NME Windows build...
Apparently Joshua has fixed this issue in NME SVN.


Sat Aug 11, 2012 7:57 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.