debugger: Add an action to copy debuggee info and initialization args (#32647)
Release Notes: - Debugger Beta: added the `dev: copy debug adapter arguments` action to help troubleshoot debug configurations.
This commit is contained in:
parent
1078f929aa
commit
f227c2ff0c
7 changed files with 52 additions and 20 deletions
|
@ -892,11 +892,11 @@ impl Session {
|
|||
&self.capabilities
|
||||
}
|
||||
|
||||
pub fn binary(&self) -> &DebugAdapterBinary {
|
||||
let Mode::Running(local_mode) = &self.mode else {
|
||||
panic!("Session is not running");
|
||||
};
|
||||
&local_mode.binary
|
||||
pub fn binary(&self) -> Option<&DebugAdapterBinary> {
|
||||
match &self.mode {
|
||||
Mode::Building => None,
|
||||
Mode::Running(running_mode) => Some(&running_mode.binary),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn adapter(&self) -> DebugAdapterName {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue