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

Javascript Debugging

Open impaler opened this issue 10 years ago • 8 comments

I was never able to get Javascript debugging to work correctly with Haxe's source maps. Anyone else tried this?

I assume there was more work involved with the Javascript debugger to get this working for the other coffeescript and dart plugins.

Being able to debug with breakpoints for cpp, flash and js targets all from the same codebase and IDE, maybe a first for any language.

impaler avatar Sep 28 '14 13:09 impaler

I don't think that JavaScript debugging is implemented. IntelliJ IDEA Ultimate has such feature, but we didn't implemented it yet. If I'm not mistaking it's planned to implement debugging support for each target https://github.com/TiVo/intellij-haxe/issues/6#issuecomment-53106317

as3boyan avatar Sep 28 '14 14:09 as3boyan

Nice one.

In the meantime you can use js.Lib.debug(); to set Breakpoints in your Code so you can use the Ultimate Javascript debugger or Chrome Tools with source mapping. It works very well.

joergwasmeier avatar Jan 11 '15 09:01 joergwasmeier

@joergwasmeier A tutorial would be pretty awesome.... : )

indolering avatar Sep 12 '15 22:09 indolering

So, almost two years passed, but has anything changed? Still unprioritized?

b005t3r avatar Feb 12 '17 12:02 b005t3r

Well... TiVo didn't care about it, which is why is was unprioritized at the time. It meant that the community would have to step up and contribute. Now that I don't work directly for TiVo the relative proirity may change.

All that said, there are still a ton of bugs to fix and this remains pretty low on most people's want list. And, as @joergwasmeier said, there is a workaround.

EricBishton avatar Feb 12 '17 20:02 EricBishton

I understand there's a workaround, I'm just looking for something reliable for Haxe development. Haven't found anything like that yet.

b005t3r avatar Feb 12 '17 20:02 b005t3r

Chrome Dev tools work very well for web-based debugging and are pretty much the industry standard for any web debugging. I get that it may seem disconnected at first but its pretty seemless once you've used it for a day or two.

cmandlbaur avatar Feb 13 '17 19:02 cmandlbaur

Can we hope to get a debug soon (in Intelij Idea)? PS It is very comfortable to debug it in Idea, because there is extremely convenient navigation (by classes, by self project, dependency, etc...) .

imcasper avatar Mar 17 '21 14:03 imcasper