Skip to content

Commit

Permalink
fix(gatsby): Do not activate inspect if already active (#26708)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Dec 15, 2020
1 parent 4dc8ab7 commit 73f4cc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/gatsby/src/commands/develop-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ interface IDevelopArgs extends IProgram {
}

const openDebuggerPort = (debugInfo: IDebugInfo): void => {
if (inspector.url() !== undefined) {
return // fixes #26708
}

if (debugInfo.break) {
inspector.open(debugInfo.port, undefined, true)
// eslint-disable-next-line no-debugger
Expand Down

0 comments on commit 73f4cc6

Please sign in to comment.