Wrangler error with --port option (port 9229 taken)
I am running a worker on wrangler on MacOSX Sequoia. Even though i'm launching wrangler dev with the port command it seems to be attempting to use 9229 instead, and erroring. The exact same problem is happening on my friends machine. Has anyone seen this before? I am trying to figure out the culprit

4 Replies
9229 is the default inspector port I believe. If you try changing that with
--inspector-port xxxx
, that might help?Ooh thank makes sense I’ll give that a try
The error message is quite deceptive
FYI, this is not documented in the wrangler config docs - but is mentioned only on the wrangler command line docs. Came here to find this, and tested it works in
wrangler.jsonc
as well!
Documented here:
https://developers.cloudflare.com/workers/wrangler/commands/#dev
But NOT documented for wrangler config here:
https://developers.cloudflare.com/workers/wrangler/configuration/#local-development-settings
Could we request the wrangler config docs be updated to include inspector port?
@kian sorry for the unintroduced ping... but not sure who at CF could address above docs issue? Add inspector-port
docs to the wrangler configuration docs for wrangler.toml/wrangler.jsoncI'd recommend filing a docs issue at https://github.com/cloudflare/cloudflare-docs and the team can then triage and assign as needed 😄