nextron
nextron copied to clipboard
VS Code debug not working
Steps to reproduce:
- Create a new app:
yarn create nextron-app my-app
- Install and open VS Code:
cd my-app && yarn && code .
- Open
renderer/pages/home.jsx
and put a breakpoint on line 6:return (
- Go to
Run and Debug
tab in VS Code, select the configurationNextron: All
and click onStart Debugging (F5)
Breakpoint not detected:
Debug Diagnostics (troubleshoot your launch configuration. -> Why my breakpoints don't bind
):
@bystepii
Sorry for late reply and thank you for your issue.
I'll fix this issue and make PR for you.
What if we use pnpm, task and launch configurations only seem to work with yarn
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