]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add radsniff to vscode debug launcher
authorNick Porter <nick@portercomputing.co.uk>
Wed, 25 Oct 2023 10:02:09 +0000 (11:02 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 25 Oct 2023 10:02:09 +0000 (11:02 +0100)
.vscode/launch.json

index b8946d83f1cf4b321fbedab79161a860e05215e1..0f33e9cae96ae15d9637efde7d234736657e801c 100644 (file)
                                         "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": [
                         "id": "eapmethod",
                         "type": "promptString",
                         "description": "EAP method to test"
+                },
+                {
+                        "id": "pcap",
+                        "type": "promptString",
+                        "description": "Packet capture to read"
                 }
         ]
 }