Skip to content

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

Merged
johnstcn merged 6 commits into
mainfrom
cj/develop-dlv-debug
Mar 5, 2024
Merged

feat(scripts/develop.sh): add --debug flag to develop.sh#12423
johnstcn merged 6 commits into
mainfrom
cj/develop-dlv-debug

Conversation

@johnstcn
Copy link
Copy Markdown
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
Comment thread scripts/coder-dev.sh Outdated
Comment thread scripts/coder-dev.sh Outdated
Copy link
Copy Markdown
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