You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/topics/debug-coroutines-with-idea.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -108,12 +108,12 @@ Using IntelliJ IDEA debugger, you can dig deeper into each coroutine to debug yo
108
108
109
109
If you use `suspend` functions, in the debugger, you might see the "was optimized out" text next to a variable's name:
110
110
111
-

111
+
{width=480}
112
112
113
113
This text means that the variable's lifetime was decreased, and the variable doesn't exist anymore.
114
114
It is difficult to debug code with optimized variables because you don't see their values.
115
115
You can disable this behavior with the `-Xdebug` compiler option.
116
116
117
117
>__Never use this flag in production__: `-Xdebug` can [cause memory leaks](https://youtrack.jetbrains.com/issue/KT-48678/Coroutine-debugger-disable-was-optimised-out-compiler-feature#focus=Comments-27-6015585.0-0).
0 commit comments