Skip to content

Commit 00d9ac0

Browse files
docs: rename debugging section
Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
1 parent b6d2a11 commit 00d9ac0

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

DEVELOPMENT.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Wireshark:
334334
kubectl sniff <POD_NAME> -n knative-eventing
335335
```
336336

337-
## Debugging Knative controllers and webhooks
337+
## Debugging Knative controllers and friends locally
338338

339339
`ko` has built-in support for remote debugging Go applications using
340340
[Delve](https://github.com/go-delve/delve). This is the recommended approach for
@@ -401,13 +401,8 @@ _Keep this terminal running while you debug._
401401
"request": "attach",
402402
"mode": "remote",
403403
"port": 40000,
404-
"host": "127.0.0.1",
405-
"substitutePath": [
406-
{
407-
"from": "${workspaceFolder}",
408-
"to": "/go/src/knative.dev/eventing"
409-
}
410-
]
404+
"host": "0.0.0.0",
405+
"cwd": "${workspaceFolder}"
411406
}
412407
]
413408
}
@@ -416,10 +411,6 @@ _Keep this terminal running while you debug._
416411
2. Start the debug configuration in VSCode. Your breakpoints will now be active
417412
in the remote process.
418413

419-
> :information_source: The `substitutePath` mapping is required so that VSCode
420-
> can correctly map source files between your local workspace and the paths
421-
> inside the container.
422-
423414
### Debug with IntelliJ IDEA / GoLand
424415

425416
1. Go to **Run** → **Edit Configurations**

0 commit comments

Comments
 (0)