Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow debugging AIR target. #849

Closed
EricBishton opened this issue Jul 7, 2018 · 7 comments
Closed

Allow debugging AIR target. #849

EricBishton opened this issue Jul 7, 2018 · 7 comments
Assignees
Labels
enhancement Patron Request Issues elevated by Patreon Supporter requests. Priority 2

Comments

@EricBishton
Copy link
Member

Received this email:

From: Patrick vectorpark@gmail.com
Subject: Debugging AIR apps

Message Body:
Hi, I've just gotten OpenFL/Haxe compiling with Intellij, and I'm
wondering about debugging for AIR. Your Debugging page suggests the
plugin supports it, but when I try to debug an AIR app I get:

"Error running 'Test': You can debug only flash or HXCPP targets!"

Am I missing something? If not, is it something you foresee adding soon?
Unfortunately, my app requires the AIR api so I can't get away with
debugging as flash and then deploying as AIR.

Thanks for your time!

I think that we simply need to update the test that puts out that message and stops debugging. I use the Adobe AIR debugger when testing flash targets, so this configurattion should work.

@EricBishton EricBishton changed the title Can't debug AIR target. Allow debugging AIR target. Jul 7, 2018
@EricBishton EricBishton added Priority 2 Patron Request Issues elevated by Patreon Supporter requests. and removed Priority 3 labels Dec 22, 2018
@EricBishton EricBishton self-assigned this Dec 22, 2018
@EricBishton
Copy link
Member Author

See PR #897. AIR support is only available through older versions of openFL (unless it's been added back into Lime recently). It also requires that the debug configuration be correctly and specifically set up; there's nothing automated there. Using AIR APIs will require a haxelib that has the appropriate exports.

@EricBishton
Copy link
Member Author

Actually, it looks like Lime has added AIR support back in as of version 5.4.0:

  $ haxelib run lime
  ...
   2017-08-25 22:20:42 5.4.0 : Added AIR target, GLES3 APIs, HXP improvements
  ...

@Vectorpark
Copy link

Hey Eric, the issue I was having as of 7/7/18 wasn’t with AIR support per se, but with the debugger not launching for an AIR project. I have not restested since, but the issue was as follows:

When I run or test a sample app as Flash it opens in the Flash Player Debugger, as expected.

If I target AIR and Run, it opens ADL, which is also what I would expect.

If I target AIR and Debug, it throws the error: “You can debug only flash or HXCPP targets!”

@EricBishton
Copy link
Member Author

Right. The PR addresses that by checking if the OpenFL target was AIR and allowing the debug attempt to go forward; it treats AIR as a flash target, but doesn't do anything else special. If you have installed ADL already and point to that as your "Flex SDK for flash applications debugging," then it should work.

Since the change has been approved, I'm going to merge it and you can test the "nightly" build when you get a chance.

@EricBishton
Copy link
Member Author

Fixed by #897.

And, BTW, the reason that this is tied to OpenFL is that it's the only system that outputs AIR targets right now. The Haxe compiler (currently at 4.0.preview.5) doesn't create AIR targets.

@Vectorpark
Copy link

Ah, got it. I’ll give it a try soon. Thanks for looking into it!

@Vectorpark
Copy link

Vectorpark commented Dec 26, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Patron Request Issues elevated by Patreon Supporter requests. Priority 2
Projects
None yet
Development

No branches or pull requests

2 participants