File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ Wireshark:
334334kubectl 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._
4164112. 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
4254161. Go to **Run** → **Edit Configurations**
You can’t perform that action at this time.
0 commit comments