How exactly do you debug js browser tests running ...
# javascript
d
How exactly do you debug js browser tests running through karma? No matter how I change my gradle or karma config, or how I try to hit a breakpoint in the tests (either through debuggable chrome or attaching through the IDE) the browser just closes after a few seconds
I don't even really care about being able to step through my Kotlin code, I just want to the browser to stay open long enough for me to use a debugger at all
j
probably want to disable the default test timeout
or set it to a ridiculous amount
i think it's 2s by default in karma
d
I tried adjusting every configurable timeout that karma (and mocha) offer but to no avail
m
I think unless you have IntelliJ ultimate, you're mostly stuck using console.log . I was able to get the browser to stay open before by running gradle with --info, spotting the karma config, and then changing the option that makes it close after the test finishes,
Not a pleasant experience to be honest