mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 22:36:01 +00:00
468e69d76e
Allow debugging of session-tests and improve VS Code debug tasks. New VS Code task to download and start server for debugging New VS Code tasks to build only changed files and full rebuild
71 lines
2.3 KiB
JSON
71 lines
2.3 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible Node.js debug attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug LLDB",
|
|
"program": "node",
|
|
"cwd": "${workspaceRoot}/tests",
|
|
"args": ["--debug-brk=5858", "${workspaceRoot}/tests/node_modules/jasmine/bin/jasmine.js", "spec/unit_tests.js"],
|
|
"stopOnEntry": true
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug LLDB only",
|
|
"program": "node",
|
|
"cwd": "${workspaceRoot}/tests",
|
|
"args": ["${workspaceRoot}/tests/node_modules/jasmine/bin/jasmine.js", "spec/unit_tests.js"],
|
|
"stopOnEntry": false
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Debug Node Unit Tests (rebuild)",
|
|
"preLaunchTask": "rebuild-node-tests",
|
|
"cwd": "${workspaceRoot}/tests",
|
|
"program": "${workspaceRoot}/tests/node_modules/jasmine/bin/jasmine.js",
|
|
"args": [
|
|
"spec/unit_tests.js"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Debug Node Unit Tests",
|
|
"cwd": "${workspaceRoot}/tests",
|
|
"program": "${workspaceRoot}/tests/node_modules/jasmine/bin/jasmine.js",
|
|
"args": [
|
|
"spec/unit_tests.js"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Download & Start Server",
|
|
"cwd": "${workspaceRoot}/scripts"
|
|
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Port",
|
|
"address": "localhost",
|
|
"port": 5858
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Rebuild + Start Server + Debug",
|
|
"configurations": ["Download & Start Server", "Debug Node Unit Tests (rebuild)"]
|
|
},
|
|
{
|
|
"name": "Debug LLDB + NodeJS",
|
|
"configurations": ["Debug LLDB", "Attach to Port"]
|
|
}
|
|
]
|
|
} |