Skip to content

Conversation

@pschiel
Copy link
Contributor

@pschiel pschiel commented Dec 24, 2025

Was not able to setup debugging according to CONTRIBUTING.md:

  • bun dev spawn did not work at all
  • debugging server vs TUI was not clear, couldn't manage to debug server code.
  • not be able to break in a tsx file seemed unusual

Patch includes small info for working debugging commands, for server and TUI, tsx files work too with this. Using VSCode with the example launch.json.

Debug server: bun run --inspect=ws://localhost:6499/ ./src/index.ts serve --port 4096,
then attach TUI with opencode attach http://localhost:4096

Debug TUI: bun run --inspect=ws://localhost:6499/ --conditions=browser ./src/index.ts

@rekram1-node
Copy link
Collaborator

TY

@rekram1-node rekram1-node merged commit 0f05376 into sst:dev Dec 24, 2025
2 checks passed
@pschiel pschiel deleted the debug-documentation branch December 24, 2025 21:52
anntnzrb pushed a commit to anntnzrb/opencode-1 that referenced this pull request Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants