Skip to content

Commit b008327

Browse files
authored
Update debug.adoc
1 parent 03be57b commit b008327

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/dev/modules/ROOT/pages/debug.adoc

+15-1
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ When AddressSanitizer finds a bug you can set a breakpoint
3232
* right before it generates the error report by setting a breakpoint on `__asan::ReportGenericError`
3333
* right after the error generation by setting a breakpoint on `__asan::Die`
3434

35-
NOTE: you can also set the environment variable `ASAN_OPTIONS=abort_on_error=1` to
35+
[TIP]
36+
====
37+
you can also set the environment variable `ASAN_OPTIONS=abort_on_error=1` to
3638
get the same effect as in the second case
39+
----
40+
> ASAN_OPTIONS=abort_on_error=1 gdb <executable to debug>
41+
----
42+
====
3743

3844
[TIP]
3945
====
@@ -43,3 +49,11 @@ It is advised to disable the leak detection while looking for a bug as follows
4349
> ASAN_OPTIONS=detect_leaks=0 gdb <executable to debug>
4450
----
4551
====
52+
53+
[TIP]
54+
====
55+
To combine multiple address sanitizer options in the command line, separate them with a `:` like below
56+
----
57+
> ASAN_OPTIONS=detect_leaks=0:abort_on_error=1 gdb <executable to debug>
58+
----
59+
====

0 commit comments

Comments
 (0)