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/platforms/android/index.mdx
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ Configuration is done via the application `AndroidManifest.xml`. Here's an examp
96
96
97
97
Verify that your app is sending events to Sentry by adding the following snippet, which includes an intentional error. You should see the error reported in Sentry within a few minutes.
// Any code running after this line will be profiled, if lifecycle is set to `manual`.
109
-
Sentry.startProfiler();
110
108
try {
111
109
thrownewException("This is a test.");
112
110
} catch (Exception e) {
113
111
Sentry.captureException(e);
114
112
}
115
-
// Stop profiling, if lifecycle is set to `manual`. This call is optional. If you don't stop the profiler, it will keep profiling your application until the process exits or `Sentry.stopProfiler()` is called.
// Any code running after this line will be profiled, if lifecycle is set to `manual`.
130
-
Sentry.startProfiler()
131
125
try {
132
126
throwException("This is a test.")
133
127
} catch (e:Exception) {
134
128
Sentry.captureException(e)
135
129
}
136
-
// Stop profiling, if lifecycle is set to `manual`. This call is optional. If you don't stop the profiler, it will keep profiling your application until the process exits or `Sentry.stopProfiler()` is called.
0 commit comments