Skip to content

Commit

Permalink
Set LD_LIBRARY_PATH when running inside of VS Code to the correct loc…
Browse files Browse the repository at this point in the history
…ation

Signed-off-by: nook24 <[email protected]>
  • Loading branch information
nook24 committed Jul 7, 2023
1 parent 12de0b0 commit 7dabe86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
//"/usr/lib/gcc/x86_64-redhat-linux/12/include/**", // Fedora
"/usr/local/include/**",
"/usr/include/**",
"/usr/lib64/**"
"/usr/lib64/**",
"/usr/lib/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
Expand All @@ -19,4 +20,4 @@
}
],
"version": 4
}
}
8 changes: 7 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@
// This will trigger the "make all" task from tasks.json
"preLaunchTask": "make all",
// We are not using the binary from the build folder because we do not want to run the "make install" task.
// The "make install" task is only to generate the default naemon configurtion files
// The "make install" task is only to generate the default naemon configurtion files
"program": "${workspaceFolder}/src/naemon/.libs/naemon",
"args": [
//"--help",
"${workspaceFolder}/build/etc/naemon/naemon.cfg"
],
"cwd": "${workspaceFolder}",
"environment": [
{
"name": "LD_LIBRARY_PATH",
"value": "${workspaceFolder}/.libs"
}
],

// Optional parameter. If true, the debugger should stop at the entrypoint of the target.
"stopAtEntry": true,
Expand Down

0 comments on commit 7dabe86

Please sign in to comment.