How to debug using intelliJ?

Is the anyway to debug with IntelliJ on Cocos creator ?

works with typescript too.