Skip to content

feat(scripts/develop.sh): add --debug flag to develop.sh #12423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 5, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Mar 5, 2024

Adds a --debug flag to scripts/develop.sh that will start coder under dlv debug instead.
You can then use e.g. the following launch snippet to connect dlv:

    {
      "name": "Delve Remote",
      "type": "go",
      "request": "attach",
      "mode": "remote",
      "port": 12345,
    }

You can also run invididual CLI commands under dlv e.g.

DEBUG_DELVE=1 scripts/coder-dev.sh list

@johnstcn johnstcn marked this pull request as ready for review March 5, 2024 12:29
@johnstcn johnstcn requested a review from mafredri March 5, 2024 12:29
Copy link
Contributor

@dannykopping dannykopping 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 tonne!

@johnstcn johnstcn merged commit 61db293 into main Mar 5, 2024
@johnstcn johnstcn deleted the cj/develop-dlv-debug branch March 5, 2024 13:29
@github-actions github-actions bot locked and limited conversation to collaborators Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants