Hey. I am playing with ktor and I am running a ser...
# ktor
i
Hey. I am playing with ktor and I am running a server with netty. I wonder what is the best way to debug such application? I can set breakpoints and this is fine, but I need to understand whats going on - i need more visibility to know why ny server returns 500 ? Can we print stack trace and crash the app instead of returning 500?
t
Do you use development mode?
i
I don’t think so. How can I enable it? This is my whole config
Copy code
embeddedServer(Netty, 8080) {
        install(ContentNegotiation) {
            json()
        }

        routing {
            get("/") {
                call.respondText("My Server is working", ContentType.Text.Html)
            }
        }
    }.start(wait = true)
as well as extended debug information
i
oh thanks a lot
🙂 1