崩溃转储丢失的 nodewebkit

crash dumps missing nodewebkit

我正在使用 angularjs 和节点 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 should have been called from 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