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
+4-4
Original file line number
Diff line number
Diff line change
@@ -101,14 +101,14 @@ The tutorial assumes you have prior knowledge of the [coroutines](coroutines-gui
101
101
102
102
UsingIntelliJIDEA debugger, you can dig deeper into each coroutine to debug your code.
103
103
104
-
### Optimised-out variables
104
+
### Optimized-out variables
105
105
106
-
If you use `suspend` functions, in the debugger, you might see the "was optimised out" text next to a variable's name:
106
+
If you use `suspend` functions, in the debugger, you might see the "was optimized out" text next to a variable's name:
107
107
108
-

108
+

109
109
110
110
This text means that the variable's lifetime was decreased, and the variable doesn't exist anymore.
111
-
It is difficult to debug code with optimised variables because you don't see their values.
111
+
It is difficult to debug code with optimized variables because you don't see their values.
112
112
You can disable this behavior with the `-Xdebug` compiler option.
113
113
114
114
>__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).
Copy file name to clipboardExpand all lines: docs/topics/debug-flow-with-idea.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -102,14 +102,14 @@ Create a Kotlin [flow](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-cor
102
102
103
103

104
104
105
-
### Optimised-out variables
105
+
### Optimized-out variables
106
106
107
-
If you use `suspend` functions, in the debugger, you might see the "was optimised out" text next to a variable's name:
107
+
If you use `suspend` functions, in the debugger, you might see the "was optimized out" text next to a variable's name:
108
108
109
-

109
+

110
110
111
111
This text means that the variable's lifetime was decreased, and the variable doesn't exist anymore.
112
-
It is difficult to debug code with optimised variables because you don't see their values.
112
+
It is difficult to debug code with optimized variables because you don't see their values.
113
113
You can disable this behavior with the `-Xdebug` compiler option.
114
114
115
115
>__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