Skip to content

Commit

Permalink
Clarify how to use processExistingClasses in debugging.adoc (#3130)
Browse files Browse the repository at this point in the history
Improve the phrasing and the hint for alternative setups,
notably hint that a static block might help.
  • Loading branch information
kicmeri committed Aug 1, 2022
1 parent 394c3ae commit 41e956d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/asciidoc/debugging.adoc
Expand Up @@ -433,7 +433,7 @@ ReactorDebugAgent.init();
====

TIP: Since the implementation will instrument your classes when they are loaded,
the best place to put it is before everything else in your main(String[]) methood:
the best place to put it is before everything else in your main(String[]) method:
====
[source,java]
----
Expand All @@ -444,7 +444,7 @@ public static void main(String[] args) {
----
====

You may also re-process existing classes if you cannot run the init eagerly (e.g. in the tests):
You may also re-process existing classes with `processExistingClasses()` if you cannot run the init eagerly. For example, in https://junit.org/junit5/docs/current/user-guide/#launcher-api-listeners-custom[JUnit5 tests from a `TestExecutionListener`] or even in the class `static` initializer block:
====
[source,java]
----
Expand Down

0 comments on commit 41e956d

Please sign in to comment.