perl-dap-platform
Cross-platform helpers for finding Perl and shaping the debugger launch environment.
This crate sits below the debugger runtime and above shell quoting. It handles
the OS-specific parts of launch setup: finding the Perl executable, normalizing
filesystem paths, and building PERL5LIB-style environment maps.
Boundaries
- Use
perl-dap-shellwhen you need shell-safe argument formatting. - Use
perl-dap-platformwhen you need to resolve the executable or normalize OS paths. - Use
perl-dapwhen you want the server to actually launch and manage a debug session.
Key API
resolve_perl_pathnormalize_pathsetup_environment
Example
use ;
use PathBuf;
let normalized = normalize_path;
let env = setup_environment;
assert!;
assert_eq!;