Skip to content

Commit

Permalink
Add config for debugging with VS Code
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Mar 19, 2022
1 parent 739dc38 commit 720ce9d
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@
^src/patch-to-libxls-upstream\.R$
^LICENSE\.md$
^\.vscode$
^debug$
23 changes: 23 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/Users/jenny/Library/R/x86_64/4.1/library/cpp11/include",
"/Users/jenny/Library/R/x86_64/4.1/library/progress/include",
"/Library/Frameworks/R.framework/Resources/include",
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include",
"/usr/local/include"
],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c99",
"cppStandard": "c++11",
"intelliSenseMode": "macos-clang-x64"
}
],
"version": 4
}
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch R ",
"type": "lldb",
"request": "launch",
"program": "/Library/Frameworks/R.framework/Resources/bin/exec/R",
"args": [
"--vanilla",
"-e",
"source('debug/debug.R')"
],
"env": {
"R_HOME" : "/Library/Frameworks/R.framework/Resources"
},
"terminal": "console",
"stopOnEntry": false
}
]
}

0 comments on commit 720ce9d

Please sign in to comment.