Last active
January 4, 2022 04:43
-
-
Save nascarsayan/13557e18c8185791e9ed8e6d7f51956c to your computer and use it in GitHub Desktop.
Debugging operator inside VSCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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": "VMM", | |
"type": "go", | |
"request": "launch", | |
"mode": "auto", | |
"program": "${workspaceRoot}/main.go", | |
// "env": { | |
// "KUBECONFIG": "/home/arcvmware/.kube/config" | |
// }, | |
// "args": [ | |
// "--profiler-address=:6060" | |
// ], | |
// "args": [ | |
// ">", | |
// "${env:workspaceRoot}/temp/logs/debug/${env:fileBaseName}.debug.log" | |
// ], | |
// "debugAdapter": "dlv-dap", | |
// "showLog": true, | |
// "logDest": "${workspaceRoot}/temp/logs/debug/${fileBaseName}.debug.log", | |
"showGlobalVariables": true, | |
"internalConsoleOptions": "neverOpen", | |
}, | |
{ | |
"name": "VMM UTs", | |
"type": "go", | |
"request": "launch", | |
"mode": "auto", | |
"program": "${workspaceRoot}/controllers/test/suite_test.go", | |
"env": {}, | |
"args": [ | |
"-test.v", | |
"-ginkgo.v", | |
"-ginkgo.progress", | |
// "2>", | |
// "/home/snaskar/Code/ms/one/AzureArc-VMwareOperator/src/VMMOperator/temp/logs/debug/ut.debug.log", | |
], | |
// "debugAdapter": "dlv-dap", | |
// "showLog": true, | |
// "logDest": "${workspaceRoot}/temp/logs/debug/dlv.log", | |
// "logOutput": "dap", | |
"showGlobalVariables": true, | |
"internalConsoleOptions": "neverOpen", | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment