Skip to content

Commit 2971e63

Browse files
qwwdfsadyorickhenning
authored andcommitted
Adjust debugging documentation (Kotlin#3062)
* Do not mention obsolete gradle-aspectj-android plugin at all * Fix broken links Addresses Kotlin#3060
1 parent 83336bc commit 2971e63

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

docs/topics/debugging.md

+2-9
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* [Stacktrace recovery](#stacktrace-recovery)
88
* [Stacktrace recovery machinery](#stacktrace-recovery-machinery)
99
* [Debug agent](#debug-agent)
10-
* [Debug agent and Android](#debug-agent-and-android)
1110
* [Android optimization](#android-optimization)
1211

1312
<!--- END -->
@@ -77,12 +76,6 @@ additionally enhancing stacktraces with information where coroutine was created.
7776

7877
The full tutorial of how to use debug agent can be found in the corresponding [readme](../../kotlinx-coroutines-debug/README.md).
7978

80-
### Debug agent and Android
81-
82-
Unfortunately, Android runtime does not support Instrument API necessary for `kotlinx-coroutines-debug` to function, triggering `java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory;`.
83-
84-
Nevertheless, it will be possible to support debug agent on Android as soon as [GradleAspectJ-Android](https://github.com/Archinamon/android-gradle-aspectj) will support android-gradle 3.3
85-
8679
<!---
8780
Make an exception googlable
8881
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory;
@@ -98,8 +91,8 @@ java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/Mana
9891
## Android optimization
9992

10093
In optimized (release) builds with R8 version 1.6.0 or later both
101-
[Debugging mode](../../docs/debugging.md#debug-mode) and
102-
[Stacktrace recovery](../../docs/debugging.md#stacktrace-recovery)
94+
[Debugging mode](debugging.md#debug-mode) and
95+
[Stacktrace recovery](debugging.md#stacktrace-recovery)
10396
are permanently turned off.
10497
For more details see ["Optimization" section for Android](../../ui/kotlinx-coroutines-android/README.md#optimization).
10598

kotlinx-coroutines-debug/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,8 @@ of the dump programmatically.
154154

155155
### Debug agent and Android
156156

157-
Unfortunately, Android runtime does not support Instrument API necessary for `kotlinx-coroutines-debug` to function, triggering `java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory;`.
158-
159-
Nevertheless, it will be possible to support debug agent on Android as soon as [GradleAspectJ-Android](https://github.com/Archinamon/android-gradle-aspectj) will support android-gradle 3.3
157+
Android runtime does not support Instrument API necessary for `kotlinx-coroutines-debug` to function, triggering `java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory;`,
158+
and it is not possible to use coroutine debugger along with Android emulator.
160159

161160
<!---
162161
Make an exception googlable

0 commit comments

Comments
 (0)