eggjs HBuilderX breakpoint debugging solution

1. The problem to be solved: When editing eggjs code in HBuilder X, you can debug at the breakpoint on the chrome developer tool devtools (similar to front-end debugging js)

2. Why solve this problem: Because bloggers just don't like to use IDEs such as vscode and WebStorm to develop!

Let’s look at the effect first and see if what you want to achieve is the effect of the blogger.

Well, it's almost like this, let me talk about the specific operation process,

1. First of all, you have to have a project first, you first follow the tutorial on the official website to quickly build a project https://eggjs.org/zh-cn/intro/quickstart.html

Note that there are two pits here. The first official website may not open from time to time. The blogger finds a mirror doc document address for novices https://www.bookstack.cn/read/eggjs-2.26-zh/intro-quickstart .md The  second pit npm run dev There should be another one before the update dependency, npm install (it is best to go to cnpm Taobao), of course, if you run it, the second pit can be ignored. 2. Now let’s talk about the formal process. Well, the first project to run npm run dev

Guess you like

Origin blog.csdn.net/xuelang532777032/article/details/112307967