intellij-haxe
intellij-haxe copied to clipboard
Javascript Debugging
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.
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
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 A tutorial would be pretty awesome.... : )
So, almost two years passed, but has anything changed? Still unprioritized?
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.
I understand there's a workaround, I'm just looking for something reliable for Haxe development. Haven't found anything like that yet.
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.
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...) .