Fix a couple of bugs in remote browser debugging implementation (#40225)

Follow-up to #39248 

- Correctly forward ports over SSH, including the port from the debug
scenario's `url`
- Give the companion time to start up, instead of bailing if the first
connection attempt fails

Release Notes:

- Fixed not being able to launch a browser debugging session in an SSH
project.
45af5e4239Cole Miller committed on 10/15/2025, 3:05:19 AM· committed by GitHubparent01f9b1e
4 files changedLine totals unavailable