> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# printConsoleTrace

- **Type:** `boolean`
- **Default:** `false`
- **CLI:** `--printConsoleTrace`

Print console traces when calling any console method, which is helpful for debugging.


**CLI**

```bash
npx rstest --printConsoleTrace
```


**rstest.config.ts**

```ts
import { defineConfig } from '@rstest/core';

export default defineConfig({
  printConsoleTrace: true,
});
```


:::note
When [disableConsoleIntercept](/config/test/disable-console-intercept.md) is set to `true`, `printConsoleTrace` will not take effect.
:::
