puremourning / vimspector

vimspector - A multi-language debugging system for Vim
http://puremourning.github.io/vimspector-web
Apache License 2.0
4.1k stars 175 forks source link

Bash argssstring #767

Closed puremourning closed 1 year ago

puremourning commented 1 year ago

The undocumented required arguments:

export interface LaunchRequestArguments extends DebugProtocol.LaunchRequestArguments {

    // Non-optional arguments are guaranteed to be defined in extension.ts: resolveDebugConfiguration().
    argsString: string;
    args: string[];
    env: object;
    cwd: string;
    cwdEffective: string;
    program: string;
    programEffective: string;
    pathBash: string;
    pathBashdb: string;
    pathBashdbLib: string;
    pathCat: string;
    pathMkfifo: string;
    pathPkill: string;
    terminalKind?: 'integrated' | 'external' | 'debugConsole';
    showDebugOutput?: boolean;
    /** enable logging the Debug Adapter Protocol */
    trace?: boolean;
}

From: https://github.com/rogalmic/vscode-bash-debug/blob/e9ae6ea07c05ce621d2f25b899b5560d000d9c57/src/bashDebug.ts#L17

"Resolved" sadly by client-side-specific code here: https://github.com/rogalmic/vscode-bash-debug/blob/e9ae6ea07c05ce621d2f25b899b5560d000d9c57/src/extension.ts#L46

Seems DAP following in LSP footsteps.

Fixes #766

puremourning commented 1 year ago

This change is Reviewable