nextron icon indicating copy to clipboard operation
nextron copied to clipboard

VS Code debug not working

Open bystepii opened this issue 2 years ago • 3 comments

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

bystepii avatar Jan 06 '23 23:01 bystepii

@bystepii

Sorry for late reply and thank you for your issue.

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

saltyshiomix avatar Jan 08 '23 02:01 saltyshiomix

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

irg1008 avatar Feb 15 '23 11:02 irg1008

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

shoaibmohommed avatar Mar 06 '23 20:03 shoaibmohommed