macOS:CmdShiftC Linux:CtrlShiftC Windows:CtrlShiftC Install npm install electron-debug Requires Electron 30 or later. Usage import{app,BrowserWindow}from'electron';importdebugfrom'electron-debug';debug();letmainWindow;(async()=>{awaitapp.whenReady();mainWindow=newBrowserWindow();})(); ...
然后在想要进行verbose打印的时候,执行npm rum installappdeps-with-verbose: 可以看到,在install-app-deps的DEBUG打印前,我们还看到node给出的一些额外信息。
electron-demo/npm-debug.log Go to file Copy path Cannot retrieve contributors at this time 37 lines (37 sloc)1.75 KB RawBlame 0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'start' ] ...
使用--inspect=[port] 来设置一个运行端口,比如在package.json中配置如下脚本并在终端输入 npm run start: "scripts": { "start": "electron --inspect=5858 .", } 1. 2. 3. 浏览器输入: chrome://inspect,点击下方绿色 inspect 第二步点击inspect之后就会弹出一个调试主进程的浏览器窗口,就可以在这个窗...
在quasar cli中安装vue-devtools可谓一波三折,网上找的一些方法所用到的BrowserWindow.addDevToolsExtension新版本已不支持,现需要在主进程app.on('ready')后去执行以下代码 此外需要先npm安装以下两个包:electron-debug和electron-devtools-installer,亲测有效。
npm module to install electron debug symbols usage var minidump = require("minidump"); minidump.addSymbolPath.apply(minidump, require("electron-debug-symbols").paths); // now when using minidump.walkStack, it would give a more understandable report due to having debug symbols You can use ...
npm install npm start 2. 安装electron-prebuilt npm install –save-dev electron-prebuilt 3. 安装gulp构建工具 npm install -g gulp 全局安装后,再在本地安装一次 npm install gulp 4. 新建一个gulpfile.js文件 // 获取依赖vargulp=require('gulp'),childProcess=require('child_process'),electron=require...
第一步就是按照工具npm i -g @electron/build-tools 第二步就是执行第一个方法e init --root=~/electron testing, 初始化资源, 这里root是指定目录,目录需要是空目录,后面的testing代表这次编辑打包名字,你可以多次init不同的名称,可以切换到不同的编辑打包中去 ...
Simplified interface for application Debugging.. Latest version: 0.138.0, last published: 4 years ago. Start using @sidneys/electron-debug-service in your project by running `npm i @sidneys/electron-debug-service`. There is 1 other project in the npm reg
$ git clone https://github.com/electron/electron-quick-start $ cd ./electron-quick-start $ npm install After the above steps, the basic Electron application development environment is built. Viewpackage.json: { "name": "electron-quick-start", ...