This repository was archived by the owner on Oct 4, 2026. It is now read-only.
Repository navigation
feat: Allow port option for launching chromium browser - #3
Merged
Merged
Conversation
Author
|
To clarify: I want to be able to create a debug workflow in my IDE (VS Code) to attach to the browser that gets spawned. The random ports make this more tedious, because I have to find the random port each time I spawn the browser and update the launch config for the debug environment in VS Code. The underlying chrome-launch dependency that this code uses supports specifying a specific port, so this PR bridges that gap for an easier debugging experience. |
aklinker1
approved these changes
Jul 7, 2024
aklinker1
left a comment
Member
There was a problem hiding this comment.
Good PR, thanks. You may also want to open a PR on the original repo, mozilla/web-ext
Member
Author
Thank you. Good idea. I'll work on that soon. |
aklinker1
pushed a commit
that referenced
this pull request
Apr 30, 2025
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This suggestion allows us to specify a port when launching Chrome. While we can easily add the "remote-debugging-port" option to vite.config.ts, the option doesn't get picked up by web-ext and results in a connection failure error shortly after launching a debugging session.
In absence of a port option, web-ext chooses a random port when launching . By specifying a specific port, it makes it easier to attach to the spawned browser with a debugger during testing.