From c672edfda4f17757d310a63c4c9b2f546ed59d6a Mon Sep 17 00:00:00 2001 From: mariadb-AlexeyVorovich <79879057+mariadb-AlexeyVorovich@users.noreply.github.com> Date: Fri, 11 Aug 2023 16:04:29 -0400 Subject: [PATCH] Vscode nonroot debug launch2 (#2929) * -vscode add launch config for all processes - -fg option used - tested with primproc only. will others test later * -change -fg option to -f --------- Co-authored-by: pgmabv99 --- .vscode/launch.json | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index b003b5ef6..7f78d74df 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,7 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + // attach configs { "name": "controllernode", "type": "cppdbg", @@ -60,6 +61,7 @@ "exceptionList": "" }, }, + { "name": "WriteEngineServer", "type": "cppdbg", @@ -74,5 +76,64 @@ "exceptionList": "" }, }, + + // launch configs + { + "name": "controllernode Launch", + "type": "cppdbg", + "request": "launch", + "program": "/usr/bin/controllernode", + "args": ["-f"], + "stopAtEntry": true, + "cwd": "${workspaceFolder}", + "miDebuggerPath": "${workspaceFolder}/.vscode/sudo_gdb.sh", + "externalConsole": false, + }, + { + "name": "DDLProc Launch", + "type": "cppdbg", + "request": "launch", + "program": "/usr/bin/DDLProc", + "args": ["-f"], + "stopAtEntry": true, + "cwd": "${workspaceFolder}", + "miDebuggerPath": "${workspaceFolder}/.vscode/sudo_gdb.sh", + "externalConsole": false, + }, + + { + "name": "DMLProc Launch", + "type": "cppdbg", + "request": "launch", + "program": "/usr/bin/DMLProc", + "args": ["-f"], + "stopAtEntry": true, + "cwd": "${workspaceFolder}", + "miDebuggerPath": "${workspaceFolder}/.vscode/sudo_gdb.sh", + "externalConsole": false, + }, + { + "name": "PrimProc Launch", + "type": "cppdbg", + "request": "launch", + "program": "/usr/bin/PrimProc", + "args": ["-f"], + "stopAtEntry": true, + "cwd": "${workspaceFolder}", + "miDebuggerPath": "${workspaceFolder}/.vscode/sudo_gdb.sh", + "externalConsole": false, + }, + + { + "name": "WriteEngineServer Launch", + "type": "cppdbg", + "request": "launch", + "program": "/usr/bin/WriteEngineServer", + "args": ["-f"], + "stopAtEntry": true, + "cwd": "${workspaceFolder}", + "miDebuggerPath": "${workspaceFolder}/.vscode/sudo_gdb.sh", + "externalConsole": false, + }, ] } \ No newline at end of file