Rebases to current debug module and adds one of my changes on top

I would need the color change for node-webkit