Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Debug Main not working with Visual Studio Code on Windows #3689

Open
Labels
@gpisano97

Description

@gpisano97

Prerequisites

  • Using npm
  • Using an up-to-datemain branch
  • Using latest version of devtools.Check the docs for how to update
  • Tried solutions mentioned in#400
  • For issue in production release, add devtools output ofDEBUG_PROD=true npm run build && npm start

Expected Behavior

Setting breakpoints on main process code and break the execution in those breakpoints.

Current Behavior

The execution doesn't stop in the breakpoints. The breakpoints are disabled during execution (transparent circle, must be red).

Steps to Reproduce

  1. Click on Run and Debug
  2. Select Electron: Main or Electron: All
  3. Press the "run debug" button.
  4. Set a breakpoint.
  5. Run the code portion where the breakpoint is setted.

Maybe the launch.json is not properly configured, but i don't know how to fix it.

Context

I'm writing a small utility desktop application in order to help the error checking of a new born product.
The boilerplate has no changes, i only write:
app.commandLine.appendSwitch("remote-debugging-port", '9223')
in main.js to fix the render debug (that is not working too without this fix).

Your Environment

  • Node version : 23.11.0
  • electron-react-boilerplate version or branch : main branch, downloaded today 2024-04-04
  • Operating System and version : Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp