I wanted to debug an app too slow, then i added "webkit-devtools-agent" to my setup and added :
var agent = require('webkit-devtools-agent');
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8080, '127.0.0.1');
to my js.
however i got, at terminal :
$ nw app.nw
[5169:0307/072852:INFO:CONSOLE(352)] "Uncaught Error: dlopen(/private/var/folders/8h/xmnb1mzx1cn0rr8gx3c1gmq40000gn/T/.org.chromium.Chromium.UMknLM/node_modules/webkit-devtools-agent/build/Release/profiler.node, 1): no suitable image found. Did find:
/private/var/folders/8h/xmnb1mzx1cn0rr8gx3c1gmq40000gn/T/.org.chromium.Chromium.UMknLM/node_modules/webkit-devtools-agent/build/Release/profiler.node: mach-o, but wrong architecture", source: module.js (352)
and at chrome browser :
no way, on Mac OS X ML, to copy and paste the browser contenet