我正在使用 angularjs 和 node webkit 开发一个应用程序(现在在 Windows 上,但我也想有一个 mac 版本)。
碰巧我的应用程序崩溃了,但我不知道为什么。所以我想我应该检查这里精确生成的转储文件:https://github.com/rogerwang/node-webkit/wiki/Crash-dump
这是我的代码:
// Load native UI library
var ngui = require('nw.gui');
ngui.App.setCrashDumpDir("logs");
// Get the current window
var nwin = ngui.Window.get();
// show devtools to debug
nwin.showDevTools();
onload = function() {
nwin.show();
nwin.maximize();
}
ngui.App.crashBrowser();
我已将最后一行放在查找崩溃报告中,但我无法在我的应用程序的日志文件夹中找到任何内容。 为什么?
谢谢
最佳答案
我在源代码中做了一些挖掘并找到了原因。无论出于何种原因,setCrashDumpDir 似乎已在 0.12 中被禁用。
在breakpad_win.cc , SetSetCrashDumpPath 应该是从 app.cc (nw.app module) 调用的.
The commit responsible for this was authored by GnorTech and has been disabled since Aug. 29th, 2014 .
我将为此提交错误报告。
编辑: 看起来错误报告已经存在。 https://github.com/nwjs/nw.js/issues/3226
关于javascript - 崩溃转储丢失的 nodewebkit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27808171/