Via the IntelliJ Run Configuration is also not working
Arjan van Wieringen
07/25/2024, 6:23 PM
Following the gettings tarted guide and creating a new Ktor project in IntelliJ it also doesn't work.
So either I am dumb and missing something completely obvious or something is wrong 😉
Arjan van Wieringen
07/25/2024, 6:25 PM
I figured it out... I am dumb, as expected. In the docs it states:
If you run your application using a Gradle task, you can pass io.ktor.development to the applicationDefaultJvmArgs property in a *build.gradle(.kts)* file.
Arjan van Wieringen
07/26/2024, 5:11 AM
However, I still don’t know why I can’t get it to work when I don’t run it via a Gradle task
a
Aleksei Tirman [JB]
07/29/2024, 7:57 AM
As far as I understand, the VM options cannot be directly passed to the application via CLI while using the
run
task. You can define a property that could determine if the development mode is on: