kopia lustrzana https://github.com/c9/core
Making basic tracing work
rodzic
5803e49d07
commit
ab5940bb9b
|
@ -314,7 +314,10 @@ module.exports = function(options) {
|
|||
packagePath: "plugins/c9.ide.language.trace/trace",
|
||||
extendToken: extendToken,
|
||||
},
|
||||
"plugins/c9.ide.language.trace/ui",
|
||||
{
|
||||
packagePath: "plugins/c9.ide.language.trace/ui",
|
||||
workspaceDir: workspaceDir,
|
||||
},
|
||||
|
||||
// Run
|
||||
{
|
||||
|
|
|
@ -211,7 +211,7 @@ module.exports = function setup(fsOptions) {
|
|||
var args = Array.prototype.slice.apply(arguments);
|
||||
var d = domain.create();
|
||||
d.on("error", function(e) {
|
||||
console.error("VFS Exception in function '" + func + "':\n" + e.stack);
|
||||
console.error("VFS Exception in function '" + func + "':\n", (e.stack || e));
|
||||
vfs.emit("error", {
|
||||
message: e.message,
|
||||
func: func,
|
||||
|
@ -220,7 +220,7 @@ module.exports = function setup(fsOptions) {
|
|||
});
|
||||
console.log("Scheduling process exit");
|
||||
setTimeout(function() {
|
||||
console.log("Exiting after uncaught exception in '" + func + "':\n" + e.stack)
|
||||
console.log("Exiting after uncaught exception in '" + func + "':\n", (e.stack || e))
|
||||
process.exit(1);
|
||||
}, 2000);
|
||||
});
|
||||
|
|
|
@ -28,4 +28,4 @@ var i = 0;
|
|||
console.log(greeter(user), Date.now(), i++);
|
||||
setInterval(function(){
|
||||
console.log(greeter(user), Date.now(), i++);
|
||||
}, 1000);
|
||||
}, 10000);
|
||||
|
|
Ładowanie…
Reference in New Issue