Skip to main content
Version: 2.x

Debugging and Diagnostics

Debuggingโ€‹

The TestConsole service has two modes debug and silent state. ZIO Test has two corresponding test aspects to switch the debug state on and off:

  1. TestAspect.debug โ€” When the TestConsole is in the debug state, the console output is rendered to the standard output in addition to being written to the output buffer. We can manually enable this mode by using TestAspect.debug test aspect.

  2. TestAspect.silent โ€” This test aspect turns off the debug mode and turns on the silent mode. So the console output is only written to the output buffer and not rendered to the standard output.

Diagnosticsโ€‹

The diagnose is an aspect that runs each test on a separate fiber and prints a fiber dump if the test fails or has not terminated within the specified duration.

ZIO Chat

Hi, fellow coder! ๐ŸŒŸ Welcome to your ZIO adventure with the ZIO Chat Bot. ๐Ÿš€ Let's master functional Scala together. From referential transparency to concurrent prowess, I've got your back. Ready to dive in? Your questions, my insights โ€“ let's conquer ZIO! ๐Ÿ’ก๐Ÿค–