chore(make): add a debugger target that builds the host in dev mode - #604
Open
decrypto21 wants to merge 4 commits into
Open
chore(make): add a debugger target that builds the host in dev mode#604decrypto21 wants to merge 4 commits into
decrypto21 wants to merge 4 commits into
Conversation
decrypto21
force-pushed
the
nidish/make-debugger
branch
from
September 8, 2026 20:44
2c6f40f to
2d1ea80
Compare
decrypto21
force-pushed
the
nidish/make-debugger
branch
from
September 9, 2026 11:22
2d1ea80 to
b31efdc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
make debuggertarget that starts the wire debugger against a host that can reach it, with nothing to enable by hand.Why:
make devcannot drive the debugger. dotli ships onlybuildandpreview, both production builds, and the dial sits behindimport.meta.env.DEV, which a production bundle replaces withfalse. The host never dials, the board stays empty, and nothing reports why.How:
Makefilebuilds the dotli host in dev mode and runs the debugger, the host preview and the playground together.create-worker-host-runtime.tslets that build's dial URL reach the host, so the dial URL now has two sources: alocalStoragekey as before, and a value the dev build carries inVITE_TRUAPI_DEBUGGER. Both sit inside the sameDEVgate, so a production bundle still resolves neither.DEBUGGER_PORTmoves the server port and the baked-in URL together. Moving one alone leaves the host dialling a dead port, which presents as a broken debugger.@parity/truapi-debuggerbeing published.Verified with no key set. Against dot.li
main, which carries no seeding of its own, a fresh browser profile with emptylocalStoragereportswire debugger: dialling ws://127.0.0.1:9231 from the build. 92@parity/truapi-hosttests pass. The printed block,truapi-host's README and §9 of the design doc are updated to describe both sources.Not exercised from a pristine clone:
dev-bootstraprunsgit submodule update, which aborts while the dotli submodule carries local work.