Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Supoort attach/detach remote headless server without kill process
Browse files Browse the repository at this point in the history
  • Loading branch information
NingBo authored and jhendrixMSFT committed Mar 6, 2019
1 parent a838a70 commit 3429ac1
Show file tree
Hide file tree
Showing 2 changed files with 322 additions and 34 deletions.
164 changes: 164 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,170 @@
"description": "Boolean value to indicate whether global package variables should be shown in the variables pane or not."
}
}
},
"attach": {
"required": [],
"properties": {
"program": {
"type": "string",
"description": "Path to the program folder (or any file within that folder) when in 'debug' or 'test' mode, and to the pre-built binary file to debug in 'exec' mode.",
"default": "${workspaceFolder}"
},
"mode": {
"enum": [
"auto",
"debug",
"remote",
"test",
"exec"
],
"description": "One of 'auto', 'debug', 'remote', 'test', 'exec'.",
"default": "auto"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop program after launch.",
"default": false
},
"args": {
"type": "array",
"description": "Command line arguments passed to the program.",
"items": {
"type": "string"
},
"default": []
},
"showLog": {
"type": "boolean",
"description": "Show log output from the delve debugger.",
"default": false
},
"cwd": {
"type": "string",
"description": "Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.",
"default": "."
},
"env": {
"type": "object",
"description": "Environment variables passed to the program.",
"default": {}
},
"buildFlags": {
"type": "string",
"description": "Build flags, to be passed to the Go compiler.",
"default": ""
},
"init": {
"type": "string",
"description": "Init file, executed by the terminal client.",
"default": ""
},
"remotePath": {
"type": "string",
"description": "If remote debugging, the path to the source code on the remote machine, if different from the local machine.",
"default": ""
},
"port": {
"type": "number",
"description": "The port that the delve debugger will be listening on.",
"default": 2345
},
"host": {
"type": "string",
"description": "The host name of the machine the delve debugger will be listening on.",
"default": "127.0.0.1"
},
"trace": {
"type": [
"boolean",
"string"
],
"enum": [
"verbose",
true
],
"default": true,
"description": "When 'true', the extension will log diagnostic info to a file. When 'verbose', it will also show logs in the console."
},
"envFile": {
"type": "string",
"description": "Absolute path to a file containing environment variable definitions.",
"default": "${workspaceFolder}/.env"
},
"backend": {
"type": "string",
"enum": [
"default",
"native",
"lldb"
],
"description": "Backend used by delve. Only available in delve version 0.12.2 and above."
},
"output": {
"type": "string",
"description": "Output path for the binary of delve",
"default": "debug"
},
"logOutput": {
"type": "string",
"enum": [
"debugger",
"gdbwire",
"lldbout",
"debuglineerr",
"rpc"
],
"description": "Comma separated list of components that should produce debug output.",
"default": "debugger"
},
"dlvLoadConfig": {
"type": "object",
"properties": {
"followPointers": {
"type": "boolean",
"description": "FollowPointers requests pointers to be automatically dereferenced",
"default": true
},
"maxVariableRecurse": {
"type": "number",
"description": "MaxVariableRecurse is how far to recurse when evaluating nested types",
"default": 1
},
"maxStringLen": {
"type": "number",
"description": "MaxStringLen is the maximum number of bytes read from a string",
"default": 64
},
"maxArrayValues": {
"type": "number",
"description": "MaxArrayValues is the maximum number of elements read from an array, a slice or a map",
"default": 64
},
"maxStructFields": {
"type": "number",
"description": "MaxStructFields is the maximum number of fields read from a struct, -1 will read all fields",
"default": -1
}
},
"description": "LoadConfig describes to delve, how to load values from target's memory",
"default": {
"followPointers": true,
"maxVariableRecurse": 1,
"maxStringLen": 64,
"maxArrayValues": 64,
"maxStructFields": -1
}
},
"apiVersion": {
"type": "number",
"enum": [
1,
2
],
"description": "Delve Api Version to use. Default value is 2.",
"default": 2
}
}
}
}
}
Expand Down
Loading

0 comments on commit 3429ac1

Please sign in to comment.