Skip to content

--inspect does not seem to work in forked processes #9696

@bpasero

Description

@bpasero
  • Electron version: 1.7.2
  • Operating system: macOS 10.12.5

Expected behavior

Forked processes can be started with --inspect or --inspect-brk for debugging them.

Actual behavior

This option does not seem to have any impact.

How to reproduce

  • git clone https://github.com/bpasero/electron-inspect.git
  • npm install
  • ./node_modules/.bin/electron .

=> we fork the process in https://github.com/bpasero/electron-inspect/blob/master/fork.js#L3
=> you see a file tempXYZ appearing which means script.js was executed
=> this is unexpected because fork.js was forked with --inspect-brk

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions