npm install asar -g
C:\Users\czl\Desktop\node-v17.6.0-win-x86>npm install asar -g
npm WARN deprecated [email protected]: Please use @electron/asar moving forward. There is no API change, just a package name change
added 17 packages, and audited 18 packages in 4s
1 package is looking for funding
run `npm fund` for details
found 0 vulnerabilities
asar extract app.asar app
cd app
npm config set ELECTRON_MIRROR https://npm.taobao.org/mirrors/electron/
npm install electron
.\node_modules\.bin\electron . --inspect-brk
使用chrome打开网址chrome://inspect/#devices
点击inspect
点击向工作区添加文件夹
,将代码所在文件夹添加进来
打开package.js
在入口js文件,打断点