Skip to content

Suggestion: deprecate "rech.cobol.debug.params" in favor of vscode standard (and adjust the docs) #13

Description

@GitMensch

The current way is the following launch configuration (at least as I've understood the docs):

{
	"version": "0.2.0",
	"configurations": [
		{
			"type": "COBOL",
			"request": "launch",
			"name": "COBOL Debugger",
			"commandLine": "isdbg.exe $1 $2",
			"params": [
			    "Program name",
			    "Sample question for second parameter",
			],
			"stopOnEntry": true
		}
	]
}

The vscode default is to use configurable input parameters instead (those also allow drop-downs, get parameter from a command, ... via its types, see Input Variables docs), which would look like the following (and comes "for free" - the only thing to do would be deprecation of rech.cobol.debug.params and removing when possible):

{
	"version": "0.2.0",
	"configurations": [
		{
			"type": "COBOL",
			"request": "launch",
			"name": "COBOL Debugger",
			"commandLine": "isdbg.exe ${input:prog} ${input:second}",
			"stopOnEntry": true
		}
	],
	"inputs": [
		{
			"id": "program",
			"description": "Program name",
			"type":  "promptString",
			"default": "YourMain"
		},
		{
			"id": "second",
			"description": "Sample question for second parameter",
			"type":  "promptString",
			"default": ""
		}
	]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions