From 8c1d39b735b66cd3b57ce5578415431edbb10b70 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Wed, 11 Aug 2021 19:56:04 +0900 Subject: [PATCH] vscode lldb configuration template --- .vscode/launch.json | 283 ++++++++++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 20 ++++ 2 files changed, 303 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..0f67637430 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,283 @@ +{ + // 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": [ + { + "type": "lldb", + "request": "launch", + "name": "Debug executable 'rustpython'", + "preLaunchTask": "Build RustPython Debug", + "program": "target/debug/rustpython", + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython" + ], + "filter": { + "name": "rustpython", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug benchmark 'execution'", + "cargo": { + "args": [ + "test", + "--no-run", + "--bench=execution", + "--package=rustpython" + ], + "filter": { + "name": "execution", + "kind": "bench" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug benchmark 'microbenchmarks'", + "cargo": { + "args": [ + "test", + "--no-run", + "--bench=microbenchmarks", + "--package=rustpython" + ], + "filter": { + "name": "microbenchmarks", + "kind": "bench" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython-pylib'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython-pylib" + ], + "filter": { + "name": "rustpython-pylib", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython-bytecode'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython-bytecode" + ], + "filter": { + "name": "rustpython-bytecode", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython-compiler'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython-compiler" + ], + "filter": { + "name": "rustpython-compiler", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython-compiler-core'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython-compiler-core" + ], + "filter": { + "name": "rustpython-compiler-core", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython-ast'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython-ast" + ], + "filter": { + "name": "rustpython-ast", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython-parser'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython-parser" + ], + "filter": { + "name": "rustpython-parser", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython-vm'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython-vm" + ], + "filter": { + "name": "rustpython-vm", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython-common'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython-common" + ], + "filter": { + "name": "rustpython-common", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython-jit'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython-jit" + ], + "filter": { + "name": "rustpython-jit", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug integration test 'integration'", + "cargo": { + "args": [ + "test", + "--no-run", + "--test=integration", + "--package=rustpython-jit" + ], + "filter": { + "name": "integration", + "kind": "test" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'rustpython_wasm'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=rustpython_wasm" + ], + "filter": { + "name": "rustpython_wasm", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000000..8b7e55b09f --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,20 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build RustPython Debug", + "type": "shell", + "command": "cargo", + "args": [ + "build", "--features=ssl", + ], + "problemMatcher": [ + "$rustc", + ], + "group": { + "kind": "build", + "isDefault": true, + }, + } + ], +} \ No newline at end of file