docbrown/.vscode/launch.json
Meredith ef0879f4aa
Update ruby VSCode extensions for debugging (#20816)
The 'rebornix.Ruby' extension is deprecated. I replaced with the
'Shopify.ruby-lsp' extension since VSCode's Ruby docs pointed
users to ruby-lsp, see https://code.visualstudio.com/docs/languages/ruby.
2024-04-08 12:14:15 +00:00

59 lines
1.6 KiB
JSON

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Node",
"port": 9229,
"request": "attach",
"skipFiles": ["node_modules/*", "<node_internals>/**/*.js"],
"type": "node"
},
{
"name": "Attach to Edge",
"type": "vscode-edge-devtools.debug",
"request": "attach",
"port": 2015,
"webRoot": "${workspaceFolder}"
},
{
"name": "Attach to Chrome",
"type": "chrome",
"request": "attach",
"port": 9222,
"webRoot": "${workspaceFolder}/app/javascript/packs"
},
{
"name": "Attach to Existing Server",
"type": "ruby_lsp",
"request": "attach"
},
{
"name": "RSpec - all",
"type": "ruby_lsp",
"request": "launch",
"program": "${workspaceRoot}/bin/rspec",
},
{
"name": "RSpec - active spec file only",
"type": "ruby_lsp",
"request": "launch",
"program": "${workspaceRoot}/bin/rspec ${file}",
},
{
"name": "Jest Current File",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["${relativeFile}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
},
"skipFiles": ["node_modules/*", "<node_internals>/**/*.js"]
}
]
}