Skip to content

Conversation

@Arpit529Srivastava
Copy link

Fixes #7099

Proposed Changes

  • 🧹 Replace Telepresence debugging documentation with ko --debug approach
  • 🧹 Add instructions for VSCode and IntelliJ/GoLand remote debugging via Delve
  • 🧹 Add troubleshooting section for common debugging issues

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact; docs update itself (DEVELOPMENT.md)
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note

updated `DEVELOPMENT.md` to use ko’s built-in `--debug` flag for remote debugging instead of telepresence. this simplifies the debugging workflow by using delve directly and avoids introducing extra dependencies.

Docs
this pr updates the developer documentation (DEVELOPMENT.md) in this repository. no external documentation changes are needed since this only affects the development workflow and not any user-facing features.

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
@knative-prow
Copy link

knative-prow bot commented Feb 1, 2026

Welcome @Arpit529Srivastava! It looks like this is your first PR to knative/eventing 🎉

@knative-prow knative-prow bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 1, 2026
@knative-prow
Copy link

knative-prow bot commented Feb 1, 2026

Hi @Arpit529Srivastava. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow knative-prow bot requested review from Cali0707 and Leo6Leo February 1, 2026 21:37
@knative-prow
Copy link

knative-prow bot commented Feb 1, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Arpit529Srivastava
Once this PR has been reviewed and has the lgtm label, please assign cali0707 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Arpit529Srivastava
Copy link
Author

/cc @creydr PTAL,
thanks.

Copy link
Member

@creydr creydr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @Arpit529Srivastava for improving this.
I left two comments

DEVELOPMENT.md Outdated
```

## Debugging Knative controllers and friends locally
## Debugging Knative controllers and webhooks
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Debugging Knative controllers and webhooks
## Debugging Knative controllers and friends locally

I'd keep the initial version here, because everything what is build with ko in knative can be debugged

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see, made the changes :)

Comment on lines +395 to +413
{
"version": "0.2.0",
"configurations": [
{
"name": "Connect to Eventing Controller",
"type": "go",
"request": "attach",
"mode": "remote",
"port": 40000,
"host": "127.0.0.1",
"substitutePath": [
{
"from": "${workspaceFolder}",
"to": "/go/src/knative.dev/eventing"
}
]
}
]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@twoGiants as you're working a lot with VSCode: is all of this needed to use ko debug?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the substitutePath is there to map the local workspace path to the go module path inside the container, so vscode can correctly resolve source locations for breakpoints. that said, i'll wait for @twoGiants's review.

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
@Arpit529Srivastava
Copy link
Author

Thanks a lot @Arpit529Srivastava for improving this. I left two comments

addressed, thanks for the review :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create hack/telepresence script

2 participants