code-debug/package.json
2016-02-23 15:33:03 +01:00

190 lines
5 KiB
JSON

{
"name": "debug",
"displayName": "Debug",
"description": "Native debugging for VSCode - Currently in GDB only beta",
"version": "0.3.7",
"publisher": "webfreak",
"icon": "images/icon-plain.svg",
"engines": {
"vscode": "^0.10.8"
},
"categories": [
"Debuggers"
],
"repository": {
"type": "git",
"url": "https://github.com/WebFreak001/code-debug.git"
},
"contributes": {
"debuggers": [
{
"type": "gdb",
"extensions": [],
"program": "./out/src/gdb.js",
"runtime": "node",
"label": "GDB",
"enableBreakpointsFor": {
"languageIds": [
"c",
"cpp",
"d",
"objective-c",
"fortran",
"fortran-modern",
"pascal",
"ada"
]
},
"configurationAttributes": {
"launch": {
"required": [
"target"
],
"properties": {
"target": {
"type": "string",
"description": "Path of executable"
},
"arguments": {
"type": "string",
"description": "Arguments to append after the executable. You can also use pipes."
},
"cwd": {
"type": "string",
"description": "Path of project"
},
"printCalls": {
"type": "boolean",
"description": "Prints all GDB calls to console",
"default": false
},
"autorun": {
"type": "array",
"description": "GDB commands to run when starting to debug",
"default": []
},
"ssh": {
"required": [
"host",
"cwd",
"user"
],
"type": "object",
"description": "If this is set then the extension will connect to an ssh host and run GDB there",
"properties": {
"host": {
"type": "string",
"description": "Remote host name/ip to connect to"
},
"cwd": {
"type": "string",
"description": "Path of project on the remote"
},
"port": {
"type": "number",
"description": "Remote port number",
"default": 22
},
"user": {
"type": "string",
"description": "Username to connect as"
},
"password": {
"type": "string",
"description": "Plain text password (unsafe; if possible use keyfile instead)"
},
"keyfile": {
"type": "string",
"description": "Absolute path to private key"
},
"forwardX11": {
"type": "boolean",
"description": "If true, the server will redirect x11 to the local host",
"default": true
},
"x11port": {
"type": "number",
"description": "Port to redirect X11 data to (by default port = display + 6000)",
"default": 6000
},
"x11host": {
"type": "string",
"description": "Hostname/ip to redirect X11 data to",
"default": "localhost"
},
"remotex11screen": {
"type": "number",
"description": "Screen to start the application on the remote side",
"default": 0
},
"bootstrap": {
"type": "string",
"description": "Content will be executed on the SSH host before the debugger call."
}
}
}
}
},
"attach": {
"required": [
"target"
],
"properties": {
"target": {
"type": "string",
"description": "PID of running program or program name or connection arguments (eg :2345) if remote is true"
},
"remote": {
"type": "boolean",
"description": "If true this will connect to a gdbserver instead of attaching to a PID",
"default": false
},
"printCalls": {
"type": "boolean",
"description": "Prints all GDB calls to console",
"default": false
},
"executable": {
"type": "string",
"description": "Path of executable for debugging symbols"
},
"cwd": {
"type": "string",
"description": "Path of project",
"default": "${workspaceRoot}"
},
"autorun": {
"type": "array",
"description": "GDB commands to run when starting to debug",
"default": []
}
}
}
},
"initialConfigurations": [
{
"name": "Debug",
"type": "gdb",
"request": "launch",
"target": "./output",
"cwd": "${workspaceRoot}"
}
]
}
]
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"test": "node ./node_modules/vscode/bin/test"
},
"dependencies": {
"vscode-debugadapter": "^1.5.0",
"vscode-debugprotocol": "^1.5.0",
"ssh2": "^0.4.13"
},
"devDependencies": {
"typescript": "^1.7.5",
"vscode": "0.11.x"
}
}