Skip to content

Commit

Permalink
feat(debug): add vscode settings to debug inside k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Jun 22, 2022
1 parent f08da2d commit 9edc446
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 2 deletions.
65 changes: 64 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,80 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "k8s: Attach to http-handler",
"presentation": {
"group": "k8s"
},
"type": "cloudcode.kubernetes",
"request": "attach",
"language": "Node",
"debugPort": "inspect",
"podSelector": {
"app.kubernetes.io/name": "http-handler"
},
"smartStep": true,
"localRoot": "${workspaceFolder}/oada/",
"remoteRoot": "/oada/"
},
{
"name": "k8s: Attach to write-handler",
"presentation": {
"group": "k8s"
},
"type": "cloudcode.kubernetes",
"request": "attach",
"language": "Node",
"debugPort": "inspect",
"podSelector": {
"app.kubernetes.io/name": "write-handler"
},
"smartStep": true,
"localRoot": "${workspaceFolder}/oada/",
"remoteRoot": "/oada/"
},
{
"name": "k8s: Attach to auth",
"presentation": {
"group": "k8s"
},
"type": "cloudcode.kubernetes",
"request": "attach",
"language": "Node",
"debugPort": "inspect",
"podSelector": {
"app.kubernetes.io/name": "auth"
},
"smartStep": true,
"localRoot": "${workspaceFolder}/oada/",
"remoteRoot": "/oada/"
},
{
"type": "node",
"request": "attach",
"name": "Docker: Attach to service container",
"name": "Attach to service",
"smartStep": true,
"localRoot": "${workspaceFolder}/oada/",
"remoteRoot": "/oada/",
"resolveSourceMapLocations": null,
"port": "${input:port}"
}
],
"compounds": [
{
"name": "k8s: Attach to OADA services",
"configurations": [
"k8s: Attach to http-handler",
"k8s: Attach to write-handler",
"k8s: Attach to auth"
],
"presentation": {
"group": "k8s",
"order": 1
},
"stopAll": true
}
],
"inputs": [
{
"id": "port",
Expand Down
2 changes: 1 addition & 1 deletion oada-server.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"typescript.tsdk": "oada/.yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"eslint.nodePath": "../../.yarn/sdks",
"eslint.workingDirectories": ["./oada/"],
"eslint.workingDirectories": [{ "directory": "./oada/", "!cwd": true }],
"files.exclude": {
".actrc": true,
".history": true,
Expand Down

0 comments on commit 9edc446

Please sign in to comment.