Permalink
Browse files

Add webkit-devtools-agent

  • Loading branch information...
1 parent 3d929a6 commit 6f2290d69118e0ca6aadbc07560ebe1c660d8e5d @ixti ixti committed Jun 7, 2012
Showing with 11 additions and 1 deletion.
  1. +9 −0 lib/init/server.js
  2. +2 −1 package.json
View
@@ -18,6 +18,15 @@ var Async = require('nlib').Vendor.Async;
function start_server(next) {
var server, host, port, err_handler;
+ try {
+ // add support for webkit devtools
+ require('webkit-devtools-agent');
+ nodeca.logger.info('webkit-devtools-agent enabled');
+ } catch (err) {
+ // do nothing
+ nodeca.logger.warn('webkit-devtools-agent disabled');
+ }
+
// create server
host = nodeca.config.listen.host || 'localhost';
port = nodeca.config.listen.port || 3000;
View
@@ -35,7 +35,8 @@
"cron" : "0.3.0"
},
"devDependencies" : {
- "supervisor" : "0.3.1"
+ "supervisor" : "0.3.1",
+ "webkit-devtools-agent" : "0.0.4"
},
"engines" : { "node": ">= 0.6.0" }
}

0 comments on commit 6f2290d

Please sign in to comment.