launch.json(檔案已創建)
| @@ -0,0 +1,95 @@ | |||
| 1 | + | { | |
| 2 | + | "version": "0.2.0", | |
| 3 | + | "configurations": [ | |
| 4 | + | { | |
| 5 | + | "name": "Attach to server", | |
| 6 | + | "type": "cppdbg", | |
| 7 | + | "request": "attach", | |
| 8 | + | "program": "${workspaceFolder}/build/bin/server", | |
| 9 | + | "processId": "${command:pickProcess}", | |
| 10 | + | "MIMode": "gdb", | |
| 11 | + | "miDebuggerPath": "gdb" | |
| 12 | + | }, | |
| 13 | + | { | |
| 14 | + | "name": "Launch dev/test client", | |
| 15 | + | "type": "cppdbg", | |
| 16 | + | "request": "launch", | |
| 17 | + | "program": "${workspaceFolder}/build/bin/client", | |
| 18 | + | "args": [ | |
| 19 | + | "etc/testconfig.toml" | |
| 20 | + | ], // e.g. ["--config", "config.toml"] | |
| 21 | + | "stopAtEntry": false, | |
| 22 | + | "cwd": "${workspaceFolder}", | |
| 23 | + | "environment": [], | |
| 24 | + | "externalConsole": false, | |
| 25 | + | "MIMode": "gdb", | |
| 26 | + | "miDebuggerPath": "gdb", | |
| 27 | + | "setupCommands": [ | |
| 28 | + | { | |
| 29 | + | "description": "Enable pretty-printing for gdb", | |
| 30 | + | "text": "-enable-pretty-printing", | |
| 31 | + | "ignoreFailures": true | |
| 32 | + | }, | |
| 33 | + | { | |
| 34 | + | "description": "Set Disassembly Flavor to Intel", | |
| 35 | + | "text": "-gdb-set disassembly-flavor intel", | |
| 36 | + | "ignoreFailures": true | |
| 37 | + | } | |
| 38 | + | ] | |
| 39 | + | }, | |
| 40 | + | { | |
| 41 | + | "name": "Launch client", | |
| 42 | + | "type": "cppdbg", | |
| 43 | + | "request": "launch", | |
| 44 | + | "program": "${workspaceFolder}/build/bin/client", | |
| 45 | + | "args": [ | |
| 46 | + | "etc/config.toml" | |
| 47 | + | ], // e.g. ["--config", "config.toml"] | |
| 48 | + | "stopAtEntry": false, | |
| 49 | + | "cwd": "${workspaceFolder}", | |
| 50 | + | "environment": [], | |
| 51 | + | "externalConsole": false, | |
| 52 | + | "MIMode": "gdb", | |
| 53 | + | "miDebuggerPath": "gdb", | |
| 54 | + | "setupCommands": [ | |
| 55 | + | { | |
| 56 | + | "description": "Enable pretty-printing for gdb", | |
| 57 | + | "text": "-enable-pretty-printing", | |
| 58 | + | "ignoreFailures": true | |
| 59 | + | }, | |
| 60 | + | { | |
| 61 | + | "description": "Set Disassembly Flavor to Intel", | |
| 62 | + | "text": "-gdb-set disassembly-flavor intel", | |
| 63 | + | "ignoreFailures": true | |
| 64 | + | } | |
| 65 | + | ] | |
| 66 | + | }, | |
| 67 | + | { | |
| 68 | + | "name": "Launch server", | |
| 69 | + | "type": "cppdbg", | |
| 70 | + | "request": "launch", | |
| 71 | + | "program": "${workspaceFolder}/build/bin/server", | |
| 72 | + | "stopAtEntry": false, | |
| 73 | + | "cwd": "${workspaceFolder}", | |
| 74 | + | "args": [ | |
| 75 | + | "etc/config.toml" | |
| 76 | + | ], // e.g. ["--config", "config.toml"] | |
| 77 | + | "environment": [], | |
| 78 | + | "externalConsole": false, | |
| 79 | + | "MIMode": "gdb", | |
| 80 | + | "miDebuggerPath": "gdb", | |
| 81 | + | "setupCommands": [ | |
| 82 | + | { | |
| 83 | + | "description": "Enable pretty-printing for gdb", | |
| 84 | + | "text": "-enable-pretty-printing", | |
| 85 | + | "ignoreFailures": true | |
| 86 | + | }, | |
| 87 | + | { | |
| 88 | + | "description": "Set Disassembly Flavor to Intel", | |
| 89 | + | "text": "-gdb-set disassembly-flavor intel", | |
| 90 | + | "ignoreFailures": true | |
| 91 | + | } | |
| 92 | + | ] | |
| 93 | + | } | |
| 94 | + | ] | |
| 95 | + | } | |
上一頁
下一頁