debug method Null safety

void debug(
  1. [Node? baseElement,
  2. int? maxLength,
  3. PrettyDomOptions? options]
)

A shortcut to print prettyDOM(baseElement).

NOTE: It's recommended to use ScreenQueries.debug instead.

See: testing-library.com/docs/react-testing-library/api/#debug

Implementation

void debug([
  Node? baseElement,
  int? maxLength,
  PrettyDomOptions? options,
]) =>
    printConsoleLogs(() => _jsRenderResult.debug(baseElement, maxLength, options));