Skip to content

Commit 7f0781d

Browse files
committed
Add some vscode tasks and launch stuff for Linux
1 parent 66c96eb commit 7f0781d

2 files changed

Lines changed: 108 additions & 1 deletion

File tree

.vscode/launch.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,46 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
6-
"configurations": [
6+
"configurations":
7+
[
8+
{
9+
"name": "(Linux) Client Debug x64 - gdb",
10+
"type": "cppdbg",
11+
"request": "launch",
12+
"program": "${workspaceFolder}/parsec_root/client/parsec",
13+
"args": [ "-b"],
14+
"stopAtEntry": false,
15+
"cwd": "${workspaceFolder}/parsec_root/client/",
16+
"environment": [],
17+
"externalConsole": false,
18+
"MIMode": "gdb",
19+
"setupCommands": [
20+
{
21+
"description": "Enable pretty-printing for gdb",
22+
"text": "-enable-pretty-printing",
23+
"ignoreFailures": true
24+
}
25+
]
26+
},
27+
{
28+
"name": "(Linux) Server Debug x64 - gdb",
29+
"type": "cppdbg",
30+
"request": "launch",
31+
"program": "${workspaceFolder}/parsec_root/server/parsec_server",
32+
"args": [],
33+
"stopAtEntry": false,
34+
"cwd": "${workspaceFolder}/parsec_root/server/",
35+
"environment": [],
36+
"externalConsole": false,
37+
"MIMode": "gdb",
38+
"setupCommands": [
39+
{
40+
"description": "Enable pretty-printing for gdb",
41+
"text": "-enable-pretty-printing",
42+
"ignoreFailures": true
43+
}
44+
]
45+
},
746
{
847
"name": "(Windows) Debug x64",
948
"type": "cppvsdbg",

.vscode/tasks.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,74 @@
4646
},
4747
// Use the standard MS compiler pattern to detect errors, warnings and infos
4848
"problemMatcher": "$msCompile"
49+
},
50+
{
51+
"label": "(Premake - client) x64 - Release",
52+
"type": "shell",
53+
"command": "make",
54+
"args": [
55+
"config=release_x64",
56+
],
57+
"group": "build",
58+
"presentation": {
59+
// Reveal the output only if unrecognized errors occur.
60+
"reveal": "always"
61+
},
62+
"options":{
63+
"cwd": "${workspaceFolder}/platforms/premake/build/client/",
64+
},
65+
66+
},
67+
{
68+
"label": "(Premake - client) x64 - Debug",
69+
"type": "shell",
70+
"command": "make",
71+
"args": [
72+
"config=debug_x64",
73+
],
74+
"group": "build",
75+
"presentation": {
76+
// Reveal the output only if unrecognized errors occur.
77+
"reveal": "always"
78+
},
79+
"options":{
80+
"cwd": "${workspaceFolder}/platforms/premake/build/client/",
81+
},
82+
83+
},
84+
{
85+
"label": "(Premake - server) x64 - Release",
86+
"type": "shell",
87+
"command": "make",
88+
"args": [
89+
"config=release_x64",
90+
],
91+
"group": "build",
92+
"presentation": {
93+
// Reveal the output only if unrecognized errors occur.
94+
"reveal": "always"
95+
},
96+
"options":{
97+
"cwd": "${workspaceFolder}/platforms/premake/build/server/",
98+
},
99+
100+
},
101+
{
102+
"label": "(Premake - server) x64 - Debug",
103+
"type": "shell",
104+
"command": "make",
105+
"args": [
106+
"config=debug_x64",
107+
],
108+
"group": "build",
109+
"presentation": {
110+
// Reveal the output only if unrecognized errors occur.
111+
"reveal": "always"
112+
},
113+
"options":{
114+
"cwd": "${workspaceFolder}/platforms/premake/build/server/",
115+
},
116+
49117
}
50118
]
51119
}

0 commit comments

Comments
 (0)