Skip to content

Commit

Permalink
.vscode fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Dec 21, 2019
1 parent 8bd1710 commit 1c7d333
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"configurations": [
{
"name": "Mac",
"intelliSenseMode": "clang-x64",
"includePath": [
"${myDefaultIncludePath}",
"/Applications//Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/"
],
"macFrameworkPath": [
"/System/Library/Frameworks"
],
"defines": [
"FOO",
"BAR=100"
],
"forcedInclude": [
"${workspaceFolder}/include/config.h"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17",
"compileCommands": "/path/to/compile_commands.json",
"browse": {
"path": [
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 4
}
18 changes: 17 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,25 @@
"request": "launch",
"program": "${workspaceFolder}/qjs-debug",
"args": [
"${workspaceFolder}/test.js"
"test.js"
],
"cwd": "${workspaceFolder}",
"externalConsole": false,
"environment": [
{
"name": "QUICKJS_DEBUG_ADDRESS",
"value": "127.0.0.1:5555"
}
],
"MIMode": "lldb"
},
{
"type": "quickjs",
"request": "attach",
"name": "Attach QuickJS",
"localRoot": "${workspaceFolder}/",
"mode": "listen",
"port": 5555
}
]
}

0 comments on commit 1c7d333

Please sign in to comment.