-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use 'kotlinx-coroutines-debug' in production? #1188
Comments
Stacktrace recovery can be enabled without debug module: https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/debugging.md#debug-mode Is it enough for your use-case? |
@qwwdfsad So do you mean that, without the debug module, I would have what is in the I'm sorry but I don't understand how can I enable it without the debug module. What do I have to do to do that? |
Please see https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/debugging.md for reference. In short:
Does it answer your question? Do you really need additional features debug agent brings? |
@elizarov yes it does. I got confused for some reason, but as I understand I can simply enable the stackstrace recovery with |
Just a follow-up question, I am trying this feature but it doesn't seem to work. I am particularly interested in stacktrace recovery, which if I understand correctly should exceptions thrown from coroutines to be logged with full stacktrace? I tried to enable this feature as follows by installing System.setProperty(
kotlinx.coroutines.DEBUG_PROPERTY_NAME,
kotlinx.coroutines.DEBUG_PROPERTY_VALUE_ON
) However, it doesn't seem to have any effects on stacktraces, which are still only showing only the stacktrace of the inner most coroutine. Am I missing something? |
I just came across the issue that my stacktraces are "incorrect" while using coroutines and I found the documentation about the debug agent, but at the end of the page it's written
I just would like to know if this is really only about the API of if that also include using stacktrace recovery in prod.
https://github.com/Kotlin/kotlinx.coroutines/tree/1.2.1/kotlinx-coroutines-debug
The text was updated successfully, but these errors were encountered: