Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Implement 'run mode' - fix #220
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Jan 4, 2017
1 parent c339843 commit 0702085
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/chromeDebugAdapter.ts
Expand Up @@ -40,7 +40,11 @@ export class ChromeDebugAdapter extends CoreDebugAdapter {

// Start with remote debugging enabled
const port = args.port || 9222;
const chromeArgs: string[] = ['--remote-debugging-port=' + port];
const chromeArgs: string[] = [];

if (!args.noDebug) {
chromeArgs.push('--remote-debugging-port=' + port);
}

// Also start with extra stuff disabled
chromeArgs.push(...['--no-first-run', '--no-default-browser-check']);
Expand Down Expand Up @@ -75,7 +79,8 @@ export class ChromeDebugAdapter extends CoreDebugAdapter {
this.terminateSession(errMsg);
});

return this.doAttach(port, launchUrl, args.address);
return args.noDebug ? undefined :
this.doAttach(port, launchUrl, args.address);
});
}

Expand Down

0 comments on commit 0702085

Please sign in to comment.