From: Nick Porter Date: Wed, 25 Oct 2023 10:02:09 +0000 (+0100) Subject: Add radsniff to vscode debug launcher X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa3c77b6553cc4142665b32bd0455b3002eea192;p=thirdparty%2Ffreeradius-server.git Add radsniff to vscode debug launcher --- diff --git a/.vscode/launch.json b/.vscode/launch.json index b8946d83f1c..0f33e9cae96 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -185,6 +185,31 @@ "text": "set solib-search-path ${workspaceFolder}" } ] + }, + { + "type": "cppdbg", + "request": "launch", + "name": "radsniff", + "program": "${workspaceFolder}/build/bin/local/radsniff", + "args": [ + "-X", + "-D", + "${workspaceFolder}/share/dictionary", + "-I", + "${input:pcap}" + ], + "cwd": "${workspaceFolder}", + "environment": [ + { "name": "FR_LIBRARY_PATH", "value": "${workspaceFolder}/build/lib/local/.libs" }, + { "name": "DEBUGGER_ATTACHED", "value": "yes" } + ], + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Set solib", + "text": "set solib-search-path ${workspaceFolder}" + } + ] } ], "inputs": [ @@ -223,6 +248,11 @@ "id": "eapmethod", "type": "promptString", "description": "EAP method to test" + }, + { + "id": "pcap", + "type": "promptString", + "description": "Packet capture to read" } ] }