I managed to set up a javascript debug configurati...
# javascript
c
I managed to set up a javascript debug configuration in Intellij Idea, and to add functional breakpoints in my client side kotlin code. But if I try to step over, the IDE loads the big obuscated js file from my project... IDE version is 2022.2.1 Preview Ultimate (but I had the same behavior with the previous version). I'm using js(IR).
b
Sounds like you're missing sourceMaps
c
They seem to be properly generated. And if it was the case, would the IDE be able to stop at a breakpoint in the first place?
b
Good point! How are you starting the debugger then?
Usually for js you need a separate browser debug run configuration since debug button on regular configs rarely works properly
I.e. run executable and debugger in separate processes
Also add useCommonJs() in your target config if you haven't already. See if that helps.
c
I launch the server in a separate process outside the IDE. The debugging session is a "javascript debug" configuration which launches its own chrome browser. Seems to be what you recommend. Adding
useCommonJS()
did nothing. I'm using the latest kotlin plugins, and js(IR).
b
I'm out of ideas then, apologies.