Skip to content

Commit

Permalink
fix nodemon --inspect error in lgWorker (#3590)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
  • Loading branch information
zhixzhan and cwhitten authored Jul 8, 2020
1 parent 5b35393 commit b669443
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class LgParserWithWorker {

constructor() {
const workerScriptPath = path.join(__dirname, 'lgWorker.js');
this.worker = fork(workerScriptPath, []);
// set exec arguments to empty, avoid fork nodemon `--inspect` error
this.worker = fork(workerScriptPath, [], { execArgv: [] });
this.worker.on('message', this.handleMsg.bind(this));
}

Expand Down

0 comments on commit b669443

Please sign in to comment.