diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-02-03 10:58:28 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-02-03 11:01:08 -0800 |
commit | dff03149a06149c4246070aff02f5e274b7ceeb0 (patch) | |
tree | 7c9ca374aeb11d66563f3157249a65c913b14e6b | |
parent | e50f102489fcd7ccb5bfca683bbdd430ed2fa20c (diff) | |
download | ruby-dff03149a06149c4246070aff02f5e274b7ceeb0.tar.gz |
Put example VSCode configs in misc/.vscode [ci skip]
They are needed very often but it's hard to remember. I thought it'd be
useful to just copy that to /.vscode and edit that.
Usage:
cp -r misc/.vscode .vscode
Don't symlink it because you'd edit it but not want to commit it.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | misc/.vscode/launch.json | 13 | ||||
-rw-r--r-- | misc/.vscode/settings.json | 5 | ||||
-rw-r--r-- | misc/.vscode/tasks.json | 14 | ||||
-rw-r--r-- | misc/README | 1 |
5 files changed, 34 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 58a01b86d8..ecac178a2c 100644 --- a/.gitignore +++ b/.gitignore @@ -50,6 +50,7 @@ y.tab.c *.gcno *.gcov *.vscode +!misc/.vscode lcov*.info # / diff --git a/misc/.vscode/launch.json b/misc/.vscode/launch.json new file mode 100644 index 0000000000..a059155ab2 --- /dev/null +++ b/misc/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "name": "Run ruby", + "request": "launch", + "program": "${workspaceFolder}/ruby", + "args": ["-e", "p 1"], + "preLaunchTask": "${defaultBuildTask}" + } + ] +} diff --git a/misc/.vscode/settings.json b/misc/.vscode/settings.json new file mode 100644 index 0000000000..b0f3576025 --- /dev/null +++ b/misc/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "rust-analyzer.cargo.features": [ + "disasm", + ], +} diff --git a/misc/.vscode/tasks.json b/misc/.vscode/tasks.json new file mode 100644 index 0000000000..045fe7e5c0 --- /dev/null +++ b/misc/.vscode/tasks.json @@ -0,0 +1,14 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "command": "make -j", + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} diff --git a/misc/README b/misc/README index 1728b42700..86b680e724 100644 --- a/misc/README +++ b/misc/README @@ -4,3 +4,4 @@ rb_optparse.zsh zsh completion script ruby-style.el Ruby's C/C++ mode style for emacs lldb_cruby.py LLDB port of debug utility test_lldb_cruby.rb test file for LLDB port +.vscode example VSCode config to debug Ruby |