Skip to content

Instantly share code, notes, and snippets.

@shanduur
Last active August 31, 2021 18:12
Show Gist options
  • Save shanduur/f5bec25e0702ba1201c0d0689efac43e to your computer and use it in GitHub Desktop.
Save shanduur/f5bec25e0702ba1201c0d0689efac43e to your computer and use it in GitHub Desktop.
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File", // requires ms-python.python extension
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
{
"name": "Python: Attach", // requires ms-python.python extension
"type": "python",
"request": "attach",
"connect": {
"host": "127.0.0.1",
"port": 5678
}
/**
* Additionally your script must contain the following lines:
*
* import debugpy
* debugpy.listen(5678)
* debugpy.wait_for_client()
*/
},
{
"name": "Go: Launch", // requires golang.go extension
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd",
"env": {
"KEY": "VALUE"
},
"envFile": "${workspaceFolder}/.env",
"args": []
},
{
"name": "Rust: Launch (*NIX)", // requires vadimcn.vscode-lldb extension
"type": "lldb",
"request": "launch",
"args": [],
"program": "${workspaceFolder}/target/debug/boa",
"windows": {
"program": "${workspaceFolder}/target/debug/boa.exe"
},
"cwd": "${workspaceFolder}",
"stopOnEntry": false,
"sourceLanguages": [
"rust"
],
"sourceMap": {
"/rustc/*": "${env:HOME}/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust"
}
},
{
"name": "Rust: Launch (NT)", // requires ms-vscode.cpptools extension
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/boa.exe",
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"sourceFileMap": {
"/rustc/[toolchain-str]": "${env:USERPROFILE}/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust"
},
"symbolSearchPath": "https://msdl.microsoft.com/download/symbols",
"environment": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment