# debugger: Relax implementation of \`validate_config\` to not run validation \(\#31785\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/a305eda8d159dd13160c689963818480c3c4d357)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: a305eda8d159dd13160c689963818480c3c4d357

Requested commit: a305eda8d159dd13160c689963818480c3c4d357

Commit: a305eda8d159dd13160c689963818480c3c4d357

Tree: 8258797e05380b06a30306ae2335c8f215c891f3

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
debugger: Relax implementation of `validate_config` to not run validation (#31785)

When we moved to schema-based debug configs, we've added validate_config
- a trait method
that is supposed to both validate the configuration and determine
whether it is a launch configuration
or an attach configuration.

The validation bit is a bit problematic though - we received reports on
Discords about
scenarios not starting up properly; it turned out that Javascript's
implementation was overly strict.
Thus, I got rid of any code that tries to validate the config - let's
let the debug adapter itself
decide whether it can digest the configuration or not. validate_config
is now left unimplemented for most
DebugAdapter implementations (except for PHP), because all adapters use
`request`: 'launch'/'attach' for that.
Let's leave the trait method in place though, as nothing guarantees this
to be true for all adapters.

cc @Anthony-Eid

Release Notes:

- debugger: Improved error messages when the debug scenario is not
valid.
- debugger: Fixed cases where valid configs were rejected.
```

## Parents

- [ba7b1db054b6142a74691d408dc00500acd83762](https://git.cafe/gitcafe/zed/commit/ba7b1db054b6142a74691d408dc00500acd83762?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/a305eda8d159dd13160c689963818480c3c4d357?format=markdown)
