Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements options to specify port. Improves clipboard error handling.
- Loading branch information
Showing
11 changed files
with
165 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { EasyAttachArgs } from "../dist/lib"; | ||
|
||
declare const launchDebugger: (args: EasyAttachArgs) => void; | ||
export = launchDebugger; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
import { join } from "path"; | ||
import { spawnSync } from "child_process"; | ||
import { PortConfig } from "../lib"; | ||
|
||
export interface BackgroundWorkerArgs { | ||
debugPort: number; | ||
label: string | undefined; | ||
eagerExitDebugProxy: boolean; | ||
log: boolean; | ||
debugProxyPortConfig: PortConfig; | ||
} | ||
|
||
export function launchAndWaitForBackgroundProcessSync( | ||
debugPort: number, | ||
label: string | undefined | ||
args: BackgroundWorkerArgs | ||
) { | ||
const entry = join(__dirname, "./entry.js"); | ||
spawnSync( | ||
"node", | ||
[`${entry}`, debugPort.toString(), label ? JSON.stringify(label) : ""], | ||
{ stdio: "inherit", shell: true, windowsHide: true } | ||
); | ||
spawnSync("node", [`${entry}`, JSON.stringify(args)], { | ||
stdio: "inherit", | ||
shell: false, | ||
windowsHide: true, | ||
}); | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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