From 922844e7ab8f035e7c64e08f731d437a0d64e024 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 21 Oct 2024 04:37:35 +0000 Subject: [PATCH] vscode: Add debug cfg for api server on linux --- .vscode/launch.json | 47 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f7bd1123a..b2de82cf2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -16,8 +16,14 @@ "program": "spark_api_server.exe", "args": [ "run", - "--sparkd", - "http://127.0.0.1:8000/config" + ], + "cwd": "build/Debug/bin/net7.0", + }, + "linux": { + "preLaunchTask": "Build Api Server (Debug)", + "program": "spark_api_server", + "args": [ + "run", ], "cwd": "build/Debug/bin/net7.0", }, @@ -33,8 +39,13 @@ "program": "spark_api_server.exe", "args": [ "run", - "--sparkd", - "http://127.0.0.1:8000/config" + ], + "cwd": "build/Debug/bin/net7.0", + }, + "linux": { + "program": "spark_api_server", + "args": [ + "run", ], "cwd": "build/Debug/bin/net7.0", }, @@ -265,6 +276,34 @@ } ] }, + { + "name": "Sparkd Web (Skip Build)", + "type": "cppdbg", + "request": "launch", + "program": "", + "linux": { + "program": "${workspaceFolder}/build/sparkd-debug-clang/src/app_sparkd/sparkd", + }, + "args": [ + "web" + ], + "cwd": "${workspaceFolder}/build/sparkd-debug-clang/src/app_sparkd", + "stopAtEntry": false, + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ] + }, ], "inputs": [ {