ZIm/crates/debugger_ui/src/tests
Piotr Osiewicz a305eda8d1
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.
2025-05-30 23:08:41 +02:00
..
attach_modal.rs debugger: Use DAP schema to configure daps (#30833) 2025-05-22 05:48:26 -04:00
console.rs Use read-only access methods for read-only entity operations (#31254) 2025-05-23 06:13:49 -04:00
dap_logger.rs debugger: Transition to path! macro to create paths in debugger tests (#29605) 2025-04-29 12:24:25 -04:00
debugger_panel.rs debugger beta: Fix regression where we sent launch args twice to any dap (#31325) 2025-05-24 06:52:36 +00:00
inline_values.rs debugger: Fix nits (#30632) 2025-05-13 23:13:02 +02:00
module_list.rs debugger: Update the default layout (#31057) 2025-05-22 04:32:44 +00:00
new_session_modal.rs debugger: Relax implementation of validate_config to not run validation (#31785) 2025-05-30 23:08:41 +02:00
persistence.rs debugger: Enable setting debug panel dock position to the side (#29914) 2025-05-05 21:27:20 +00:00
stack_frame_list.rs debugger: Make the stack frame list and module list keyboard-navigable (#30682) 2025-05-14 22:23:59 +02:00
variable_list.rs debugger: Update the default layout (#31057) 2025-05-22 04:32:44 +00:00