mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-26 19:03:16 +00:00
Add vscode launch configs to debug the modules and the inventory plugin. Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
46 lines
1.4 KiB
JSON
46 lines
1.4 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Debug: Ansible Module",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"cwd": "${workspaceFolder}",
|
|
"module": "plugins.modules.${fileBasenameNoExtension}",
|
|
"console": "internalConsole",
|
|
"args": [
|
|
"${workspaceFolder}/.vscode/module_args/${fileBasenameNoExtension}.json"
|
|
],
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Debug: Ansible Inventory",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"cwd": "${workspaceFolder}",
|
|
"module": "ansible.cli.inventory",
|
|
"console": "internalConsole",
|
|
"args": [
|
|
"--inventory",
|
|
"${workspaceFolder}/examples/default.kubevirt.yml",
|
|
"--list"
|
|
],
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Debug: Unit Tests",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${file}",
|
|
"purpose": [
|
|
"debug-test"
|
|
],
|
|
"console": "internalConsole",
|
|
"justMyCode": false
|
|
}
|
|
]
|
|
}
|