electron-userland / electron-userland/electron-webpack

Add "dev" mode where main process has breakpoint at first line

Open
#250 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

Similar to how I can provide `--inspect-brk` with regular Node to wait for my debugger before continuing, I'd love to be able to do the same thing with `electron-webpack`. Right now, my best solution is to re-run `electron-webpack dev` and mash "reconnect" on my debugger in the hopes that it'll connect

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the `electron-webpack dev` command and how it launches the Electron main process, then compare that behavior with Node's `--inspect-brk` option. Done means a dev mode can pause the main process at its first line and allow a debugger to connect before execution continues.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript, webpack
Domain
desktop, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.