summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-02-03 10:58:28 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-02-03 11:01:08 -0800
commitdff03149a06149c4246070aff02f5e274b7ceeb0 (patch)
tree7c9ca374aeb11d66563f3157249a65c913b14e6b /misc
parente50f102489fcd7ccb5bfca683bbdd430ed2fa20c (diff)
downloadruby-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.
Diffstat (limited to 'misc')
-rw-r--r--misc/.vscode/launch.json13
-rw-r--r--misc/.vscode/settings.json5
-rw-r--r--misc/.vscode/tasks.json14
-rw-r--r--misc/README1
4 files changed, 33 insertions, 0 deletions
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