Skip to content

Resuming newly stopped thread crashes Kotlin Debug Adapter #743

Answered by mfussenegger
nela asked this question in Q&A
Discussion options

You must be logged in to vote

auto_continue_if_many_stopped must be set in the defaults table. Either:

require('dap').defaults.fallback.auto_continue_if_many_stopped = false

If you want to set it for all debug adapters, or to set it only for kotlin:

require('dap').defaults.kotlin.auto_continue_if_many_stopped = false

You're right, this setting should be documented.

It's only auto-resumed if another thread is already stopped. The idea is that if you're debugging a multithreaded application you'll have only one thread stop at the current breakpoint while other threads will continue processing.

The reason this is the default is mainly because a) it was initially easier to implement and b) I found this behavior…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by nela
Comment options

You must be logged in to vote
2 replies
@mfussenegger
Comment options

@nela
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants