intellij-haxe icon indicating copy to clipboard operation
intellij-haxe copied to clipboard

Flash debugging doesn't start on IDEA 14, but works fine on IDEA13

Open grisevg opened this issue 11 years ago • 19 comments

There are no errors, project get's compiled and run, but no debug tab is opened when project is compiled.

grisevg avatar Nov 10 '14 17:11 grisevg

hi,can i ask you for help. what 's the type of idea 13 you used. idea13u or idea13comunicaty . i can't debug flash even in idea13u. when project compiled, nothing open. a moments later, a error tip show like this: Adobe fdb (Flash Player Debugger) [build 23201] Copyright (c) 2004-2007 Adobe, Inc. All rights reserved. Waiting for Player to connect Failed to connect; session timed out. Ensure that:

  1. you compiled your Flash movie with debugging on, and
  2. you are running the Debugger version of the Flash Player.

how can i do?

zhulu-mike avatar Nov 19 '14 02:11 zhulu-mike

@zhulu-mike:

IDEA 13 Community Edition is a Java-only platform. To use other languages, you need to buy a license for IDEA Ultimate. In general, the folks watching this list are Haxe language developers. Please do not ask questions in the middle of another issue; people will ignore you.

You'll get more informed and immediate answers using the community forums.

http://old.haxe.org/com/meeting/irc http://blog.jetbrains.com/idea/2012/05/get-involved-into-intellij-idea-community/

EBatTiVo avatar Nov 19 '14 02:11 EBatTiVo

@zhulu-mike Debugging for Flash target in IntelliJ IDEA 13 Ultimate should work just fine. I heard that people use it.

@EBatTiVo

IDEA 13 Community Edition is a Java-only platform. To use other languages, you need to buy a license for IDEA Ultimate.

I think Haxe plugin can be used in Community edition, but without Flash debugger.

as3boyan avatar Nov 19 '14 16:11 as3boyan

Was there any progress towards compatibility with IDEA14?

grisevg avatar Jan 24 '15 13:01 grisevg

@grisevg There is https://github.com/EBatTiVo/intellij-haxe/tree/ClassHierarchyIDEA14, but it's not updated to latest yet. It used to compile plugin in IDEA14 and worked for me, but still https://github.com/EBatTiVo/intellij-haxe/tree/ClassHierarchy branch still needs some work to make it pass all unit tests.

as3boyan avatar Jan 24 '15 14:01 as3boyan

So, does this work currently? I tried debugging with IDEA 14 (Ultimate Edition) and Flash target set (with AIR 24 SDK), but nothing worked.

b005t3r avatar Feb 12 '17 12:02 b005t3r

@b005t3r I have no idea whether this works currently, even with 2016.x versions. Other folks here may use that functionality and be better able to answer quickly.

If I may ask, why are you continuing to use a 14.x version of IDEA? We don't even build for 14.0.x any more. 14.1.x is the earliest supported version and it may be dropped if not enough people are using it.

EricBishton avatar Feb 12 '17 20:02 EricBishton

I have no idea

I appreciate the pun :)

I use 14.1 because I paid for it :) For AS3 dev., which I mainly use it for, it's more than sufficient (they didn't add any AS3 specific features since then anyway).

So should I try like the most recent IDEA version (CE of course, I'm not really that eager to pay for the ultimate one)? Will that help?

b005t3r avatar Feb 13 '17 07:02 b005t3r

@b005t3r I was mostly asking about 14.1 as a point of interest. 2016 may work out for you. It has a free trial for thirty days, so you can check it out without forking out the extra money.

As I understand it, IDEA CE doesn't support debugging anything other than Java. Others have found that it doesn't support Haxe debugging of the hxcpp targets. Once they switch to Ultimate, debugging starts to work.

EricBishton avatar Feb 13 '17 08:02 EricBishton

And what is the version you use and can confirm that debugging works with it? I'd rather start with something that should work rather than something that might :)

b005t3r avatar Feb 13 '17 08:02 b005t3r

For hxcpp targets and Haxe native debugging, I regularly use and test the following versions on linux: 14.1.1, 14.1.7, 15.0.6, 2016.3.4. I sometimes test 14.1.1 and 2016.2 on Windows. I do not regularly test flash targets. I know I have been able to debug flash in the past, but I don't remember on what version.

EricBishton avatar Feb 13 '17 08:02 EricBishton

OK, so just one more question: is CPP debugging any better/worse? Is it slower, platform dependent or anything else I should know about? Finally, what is the proper way to debug during development?

b005t3r avatar Feb 13 '17 09:02 b005t3r

Well, C++ debugging is done in native Haxe code. Flash debugging is done with the compiled/converted flash code. So, in the former case, it feels like a native debugger -- you're looking at and stepping through the sources you wrote. In the latter, you have to back-convert the executing code to your sources. Even using the chrome debugger and source maps, I don't think it's as straightforward.

EricBishton avatar Feb 13 '17 10:02 EricBishton

Hmm, all right, so I'll try the C++ debugging. BTW, are there any limitations with the C+ target? Can I build apps for PC, Mac, iOS etc. with it?

b005t3r avatar Feb 13 '17 10:02 b005t3r

I know for sure that you can use it for Linux, Windows and OS/x. iOS and Android, I'm not sure about.

EricBishton avatar Feb 13 '17 10:02 EricBishton

Ah, I see one does not simply start development in Haxe. I'm yet to find a person who develops Haxe tools and knows if, how and where they work :)

Thanks for help anyway :)

b005t3r avatar Feb 13 '17 10:02 b005t3r

For what it's worth, Flash debugging works fine in VSCode with https://github.com/vshaxe/vshaxe-debugadapter. It's not yet released to the marketplace (should be soon though), so you would have to build from source.

Gama11 avatar Feb 13 '17 11:02 Gama11

Thx for the info. But you see, vscode is still (and it won't change any time soon probably) just an editor - simple syntax autocompletion works, but there are no advanced functionalities that IDEA has (like refactorings or adding imports if needed).

This is one of my biggest problems with Haxe. The language looks awesome, but there are no decent tools. This works with that, that works with something else, etc.

b005t3r avatar Feb 13 '17 11:02 b005t3r

I think this should be closed. We don't support IDEA 14 anymore and Flash debugging works fine on IDEA 2020.2 with plugin version 1.3.1.

CanIGetaPR avatar Sep 30 '20 21:09 CanIGetaPR