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(); +} ---- ====