Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code debug not working #307

Open
bystepii opened this issue Jan 6, 2023 · 3 comments
Open

VS Code debug not working #307

bystepii opened this issue Jan 6, 2023 · 3 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@bystepii
Copy link

bystepii commented Jan 6, 2023

Steps to reproduce:

  1. Create a new app: yarn create nextron-app my-app
  2. Install and open VS Code: cd my-app && yarn && code .
  3. Open renderer/pages/home.jsx and put a breakpoint on line 6: return (
  4. Go to Run and Debug tab in VS Code, select the configuration Nextron: All and click on Start Debugging (F5)

Breakpoint not detected:

image

image

Debug Diagnostics (troubleshoot your launch configuration. -> Why my breakpoints don't bind):

image

@saltyshiomix
Copy link
Owner

@bystepii

Sorry for late reply and thank you for your issue.

I'll fix this issue and make PR for you.

@saltyshiomix saltyshiomix self-assigned this Jan 8, 2023
@saltyshiomix saltyshiomix added bug Something isn't working enhancement New feature or request labels Jan 8, 2023
@irg1008
Copy link

irg1008 commented Feb 15, 2023

What if we use pnpm, task and launch configurations only seem to work with yarn

@shoaibmohommed
Copy link

Hey @saltyshiomix , i am getting this error while starting debugger in vscode SyntaxError: Cannot use import statement outside a module
FYI: I am trying to run debugger in the main process, i have used typescript there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants