https://kotlinlang.org logo
#kobweb
Title
# kobweb
f

Funyinoluwa Kashimawo

09/28/2023, 8:56 PM
So I tried this run configuration to make the browser show up immediately after running, what do you think? So I would have loved to run the JsDebug right after the kobweb run but the kobweb run does not exit. But you can still run the JsDebug manually @David Herman what do you think? If this works as intended then It'll be possible to use one run command to start kobweb and show the browser and start a debug session in one go
d

David Herman

09/28/2023, 9:01 PM
Yeah, I'm not sure there's a way to get two actions for the price of one. Personally, I'd suggest using the terminal (either a separate window or the IJ tool window) to start up kobweb and then use the IDE to kickstart debugging your frontend or your backend if you need to.
You should also be aware that "kobweb run" is just "./gradlew kobwebStart -t"
You can run "./gradlew kobwebStart" if you want it to exit immediately after the server starts up
👍 1
f

Funyinoluwa Kashimawo

09/28/2023, 9:04 PM
Oooh really, thanks I'll try that out.
d

David Herman

09/28/2023, 9:04 PM
Just be sure to run "./gradlew kobwebStop" to shut things down!
f

Funyinoluwa Kashimawo

09/28/2023, 9:05 PM
Yeah, I usually make that task run before starting. So I always start from a clean slate.
2 Views