Permalink
Browse files

Change debug mode to be based on environment variable

  • Loading branch information...
PMLavigne committed Dec 29, 2015
1 parent ced2105 commit 10d8cf4e660ae7a0019619c99816419866b21b6a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/genx.js
View
@@ -1,6 +1,6 @@
// Check if we're in debug mode
var genxDir = (typeof v8debug !== 'undefined') ? '../build/Debug/genx' : '../build/Release/genx',
var genxDir = !!process.env.GENX_DEBUG ? '../build/Debug/genx' : '../build/Release/genx',
EventEmitter = require('events').EventEmitter,
genx = require(genxDir);
genx.Writer.prototype.__proto__ = EventEmitter.prototype;

0 comments on commit 10d8cf4

Please sign in to comment.