ZIm/crates/debugger_ui/src
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
..
session debugger: Relax implementation of validate_config to not run validation (#31785) 2025-05-30 23:08:41 +02:00
tests debugger: Relax implementation of validate_config to not run validation (#31785) 2025-05-30 23:08:41 +02:00
attach_modal.rs Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00
debugger_panel.rs Unify the tasks modal and the new session modal (#31646) 2025-05-29 21:33:52 -04:00
debugger_ui.rs Unify the tasks modal and the new session modal (#31646) 2025-05-29 21:33:52 -04:00
dropdown_menus.rs debugger: Add spinners while session is starting up (#31548) 2025-05-29 01:58:40 +00:00
new_session_modal.rs Use both language and LSP icons for LSP tasks (#31773) 2025-05-30 19:28:56 +00:00
persistence.rs debugger: Change console text color, add tooltips (#31765) 2025-05-30 19:21:28 +02:00
session.rs
stack_trace_view.rs Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00
tests.rs debugger beta: Fix gdb/delve JSON data conversion from New Session Modal (#31501) 2025-05-27 17:28:41 +00:00