From 0ff9a38ed4394bbe7810a4c4269e958f3a674768 Mon Sep 17 00:00:00 2001 From: kicmeri <58749831+kicmeri@users.noreply.github.com> Date: Wed, 27 Jul 2022 11:20:16 +0200 Subject: [PATCH] Update debugging.adoc Proposing the change as I was unable to make it work in test method or with `@BeforeAll`. Hoping it may save time for others. --- docs/asciidoc/debugging.adoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/asciidoc/debugging.adoc b/docs/asciidoc/debugging.adoc index 1677729df0..51e594ab09 100644 --- a/docs/asciidoc/debugging.adoc +++ b/docs/asciidoc/debugging.adoc @@ -448,8 +448,10 @@ You may also re-process existing classes if you cannot run the init eagerly (e.g ==== [source,java] ---- -ReactorDebugAgent.init(); -ReactorDebugAgent.processExistingClasses(); +static { + ReactorDebugAgent.init(); + ReactorDebugAgent.processExistingClasses(); +} ---- ====