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

Commit

Permalink
(WIP) Delve v2 API debug adapter (#1647)
Browse files Browse the repository at this point in the history
* Initial port to v2 API

* Refactor default LoadConfig

* Migrate remaining calls

* Fix CreateBreakpoint apicall

* Fix breakpoint apicalls. Unwrap command apicalls

* Add delve output on eval error (console)

* Fix EvaluateRequest apicall

* Fix SetBreakpoint, add LoadConfig interface

* Migrate Restart apicall

* Add delve LoadConfig in launch configuration

* Update launch.json

* Remove TODO comment

* Enable setting new breakpoints after a failed one

* Option to use v1 api of delve

* Collapse loadConfig to single configuration

* Fix linting errors

* Check remote debug server API version

* Use v1 by default

* Move loadConfig init before remote mode return
  • Loading branch information
lggomez authored and ramya-rao-a committed May 28, 2018
1 parent 372b0fe commit 92ada47
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 24 deletions.
45 changes: 44 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,49 @@
"type": "string",
"description": "Output path for the binary of delve",
"default": "debug"
},
"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
}
},
"useApiV1": {
"type": "boolean",
"description": "If true, the v1 of delve apis will be used, else v2 will be used",
"default": true
}
}
}
Expand Down Expand Up @@ -1031,4 +1074,4 @@
]
}
}
}
}
Loading

0 comments on commit 92ada47

Please sign in to comment.