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.
This commit is contained in:
Takashi Kokubun 2023-02-03 10:58:28 -08:00
parent e50f102489
commit dff03149a0
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD
5 changed files with 34 additions and 0 deletions

1
.gitignore vendored
View File

@ -50,6 +50,7 @@ y.tab.c
*.gcno *.gcno
*.gcov *.gcov
*.vscode *.vscode
!misc/.vscode
lcov*.info lcov*.info
# / # /

13
misc/.vscode/launch.json vendored Normal file
View File

@ -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}"
}
]
}

5
misc/.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"rust-analyzer.cargo.features": [
"disasm",
],
}

14
misc/.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "make -j",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

View File

@ -4,3 +4,4 @@ rb_optparse.zsh zsh completion script
ruby-style.el Ruby's C/C++ mode style for emacs ruby-style.el Ruby's C/C++ mode style for emacs
lldb_cruby.py LLDB port of debug utility lldb_cruby.py LLDB port of debug utility
test_lldb_cruby.rb test file for LLDB port test_lldb_cruby.rb test file for LLDB port
.vscode example VSCode config to debug Ruby