Skip to main content

Crate perl_dap_config

Crate perl_dap_config 

Source
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§

AttachConfiguration
Attach configuration for connecting to a running Perl debugging session
LaunchConfiguration
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