Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/en/appendices/6-0-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ Some properties have also been renamed to better reflect their purpose. These ar
`binary` columns to `varbinary`. The `fixed` option is no longer used;
`TableSchemaInterface::TYPE_VARBINARY` is available for the new type.

### Error

- `Debugger::outputMask()`, `setOutputMask()` have been removed.

### Http

- Using `$request->getParam('?')` to get the query params is no longer possible.
Expand Down
18 changes: 0 additions & 18 deletions docs/en/development/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ The following configuration options can be set in **config/app.php** to change h
`Debugger::addEditor()` during your application bootstrap.
- `Debugger.editorBasePath` The path that replaces `ROOT` when generating
editor links.
- `Debugger.outputMask` A mapping of `key` to `replacement` values that
`Debugger` should replace in dumped data and logs generated by `Debugger`.

::: info Added in version 5.3.0
The `Debugger.editorBasePath` configure option was added.
Expand Down Expand Up @@ -105,22 +103,6 @@ object(Car) {
}
```

### Masking Data

When dumping data with `Debugger` or rendering error pages, you may want to
hide sensitive keys like passwords or API keys. In your **config/bootstrap.php**
you can mask specific keys:

```php
Debugger::setOutputMask([
'password' => 'xxxxx',
'awsKey' => 'yyyyy',
]);
```

As of 4.1.0 you can use the `Debugger.outputMask` configuration value to set
output masks.

## Logging With Stack Traces

`static` Cake\\Error\\Debugger::**log**(mixed $var, string|int $level = 'debug', int $maxDepth = 3): void
Expand Down
Loading