Skip to content

Commit

Permalink
adding comments & instructions to launch.json configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Catalin-Stratulat-Ericsson committed Dec 11, 2024
1 parent b398878 commit 96a23fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",

// A configuration for running the porch server through vscode for the use of debugging.
// Assumes a cluster is set up alongside Git (./scripts/setup-dev-env.sh) and porch components (make ../porch/run-in-kind-no-server) are pre-configured
// With the configuration above one can use Vscode (Run & Debug) and launch server.
// This launches the porch server through vscode outside the cluster and the logs can be viewed in the debug console.
// Breakpoints can be added throughout the porch server code to debug.
"configurations": [
{
"name": "Launch Server",
Expand Down Expand Up @@ -36,6 +42,10 @@
"ENABLE_PACKAGEVARIANTSETS": "true"
}
},
// A configuration for running a porchctl command using the vscode debugger.
// Assumes a cluster is set up alongside Git (scripts/setup-dev-env.sh) and porch components (make run-in-kind) in the /porch directory are pre-configured
// This allows for the running of porchctl commands through vscode outside the cluster and the logs can be viewed in the debug console.
// Breakpoints can be added throughout the porch server code to debug.
{
"name": "Run Porchctl command",
"type": "go",
Expand Down

0 comments on commit 96a23fd

Please sign in to comment.