]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add launcher for EAP test debugging
authorNick Porter <nick@portercomputing.co.uk>
Thu, 19 Jan 2023 18:19:10 +0000 (18:19 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 7 Feb 2023 11:43:40 +0000 (11:43 +0000)
.vscode/launch.json

index 11c35ca0a897e057ab519483166f6cf50108770e..7dc07711719fa0a9fd5335049d742c0f396b6944 100644 (file)
                                         "text": "set solib-search-path ${workspaceFolder}"
                                 }
                         ]
+                },
+                {
+                        "type": "cppdbg",
+                        "request": "launch",
+                        "name": "Debug EAP (gdb)",
+                        "program": "${workspaceFolder}/build/bin/local/radiusd",
+                        "args": [
+                                "-X",
+                                "-D",
+                                "${workspaceFolder}/share/dictionary",
+                                "-d",
+                                "${workspaceFolder}/src/tests/eapol_test/config",
+                                "-n",
+                                "servers"
+                        ],
+                        "cwd": "${workspaceFolder}",
+                        "environment": [
+                                { "name": "TEST", "value": "${input:eapmethod}" },
+                                { "name": "TESTDIR", "value": "${workspaceFolder}/src/tests/eapol_test"},
+                                { "name": "TEST_PORT", "value": "12340" },
+                                { "name": "OUTPUT", "value": "${workspaceFolder}/build/tests/eapol_test/test.${input:eapmethod}"},
+                                { "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": "unittest",
                         "type": "promptString",
                         "description": "Test to run"
+                },
+                {
+                        "id": "eapmethod",
+                        "type": "promptString",
+                        "description": "EAP method to test"
                 }
         ]
 }