debugger: Add support for remote browser debugging (#39248)
This PR adds support for browser debugging in SSH and WSL projects. We use the vscode-js-debug-companion extension, repackaged as a standalone CLI (https://github.com/zed-industries/js-debug-companion-cli). Closes #38878 Release Notes: - debugger: Browser debugging is now supported in SSH and WSL projects. --------- Co-authored-by: Nia <nia@zed.dev>
This commit is contained in:
@@ -120,6 +120,13 @@ impl JsDebugAdapter {
|
||||
configuration
|
||||
.entry("sourceMapRenames")
|
||||
.or_insert(true.into());
|
||||
|
||||
// Set up remote browser debugging
|
||||
if delegate.is_headless() {
|
||||
configuration
|
||||
.entry("browserLaunchLocation")
|
||||
.or_insert("ui".into());
|
||||
}
|
||||
}
|
||||
|
||||
let adapter_path = if let Some(user_installed_path) = user_installed_path {
|
||||
|
||||
Reference in New Issue
Block a user