-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add vscode debug support #2571
Add vscode debug support #2571
Conversation
I don't know why but |
@ZeroX-DG I change devServer to detail mode. Can you check again? |
The webpack problem is somehow gone, but vscode now said that my breakpoint is |
@ZeroX-DG When after start Build Boostnote task, You need to run debug config that named BoostNote All. And then you have two debug process running Boostnote main and Boostnote renderer. Now you need to switch process in vscode to debug your code. Like if you want to debug the code running in Boostnote renderer, you need to switch process to this. This is because every Electron app have two process, Main process and Render process. |
OK @enyaxu, it works now. I'm not familiar with vscode debug system so thank you for explaining. By the way, can you add the debug instruction to our docs? it's located here: https://github.com/BoostIO/Boostnote/blob/master/docs/debug.md |
@ZeroX-DG Ok, I added the debug instruction to debug.md doc. Please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix your docs. Thank you very much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! wrong action.
@ZeroX-DG Accept your suggestions, Thank you for you suggestions. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
yarn run watch
command in terminal.