summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-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
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