forked from darklegion/tremulous
-
Notifications
You must be signed in to change notification settings - Fork 1
Developing with Visual Studio Code
Victor Roemer edited this page Aug 1, 2022
·
1 revision
NOTE: These steps are up-to-date for Mac OSX users, Windows users might need some other plugins.
With the transition to native CMake builds, usage with Visual Studio Code works nearly natively. There are some plugins needed however:
Extension ID: ms-vscode.cpptools-extension-pack
Extension ID: vadimcn.vscode-lldb
You will need this extension in to allow debugging on Mac OSX. Use this with the launch.json
configuration below.
The following is in my launch.json
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.c om/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "custom",
"name": "debug-darwin-x86_64/tremulous",
"targetCreateCommands": [
"target create ${workspaceFolder}/build/debug-darwin-x86_64/tremulous"
],
"processCreateCommands": [
"settings set target.run-args value1 value2 value3",
"process launch"
]
},
{
"type": "lldb",
"request": "custom",
"name": "release-darwin-x86_64/tremulous",
"targetCreateCommands": [
"target create ${workspaceFolder}/build/release-darwin-x86_64/tremulous"
],
"processCreateCommands": [
"settings set target.run-args value1 value2 value3",
"process launch"
]
},
{
"type": "lldb",
"request": "custom",
"name": "Connect to GrangerHub [1.1]",
"targetCreateCommands": [
"target create ${workspaceFolder}/build/debug-darwin-x86_64/tremulous"
],
"processCreateCommands": [
"settings set target.run-args connect 162.248.95.116:27341 \-1",
"process launch"
]
}
]
}