To debug the electron master process using visual Studio code

Source: Internet
Author: User

1. Open vs Code, open with file, open the program directory

2. Switch to the Debug tab

3. Open the Launch.json configuration file

4. Increase the localhost configuration on the attach to process node

5. Start the electron using the command line

6. Start attach to process debug in VS code

7. BRK in the command line means that the breakpoint is started on the first line, the breakpoint is set in the Main.js, and execution continues (F5) to jump to the Main.js breakpoint

To debug the electron master process using visual Studio code

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.