Expand description
Standalone DAP launch and attach configuration structures
This module provides configuration types for DAP debugging sessions, supporting both launch (start new process) and attach (connect to running process) modes.
§Examples
§Launch Configuration
use perl_dap_config::LaunchConfiguration;
use std::path::PathBuf;
let mut config = LaunchConfiguration {
program: PathBuf::from("script.pl"),
args: vec!["--verbose".to_string()],
cwd: Some(PathBuf::from("/workspace")),
env: std::collections::HashMap::new(),
perl_path: None,
include_paths: vec![],
};
config.validate()?;§Attach Configuration
use perl_dap_config::AttachConfiguration;
let config = AttachConfiguration {
host: "localhost".to_string(),
port: 13603,
timeout_ms: Some(5000),
};
config.validate()?;Structs§
- Attach
Configuration - Attach configuration for connecting to a running Perl debugging session
- Launch
Configuration - Launch configuration for starting a new Perl debugging session
Functions§
- create_
attach_ json_ snippet - Create an attach.json configuration snippet
- create_
launch_ json_ snippet - Create a launch.json configuration snippet