2017-12-31 18:26:59 +01:00
|
|
|
// Set prod to true when releasing
|
2018-09-25 23:37:08 +02:00
|
|
|
//_prod = true;
|
2018-12-30 23:16:09 +01:00
|
|
|
const _prod = false;
|
2017-12-31 18:26:59 +01:00
|
|
|
|
2018-12-30 23:16:09 +01:00
|
|
|
var Debug = {
|
2019-05-04 21:33:48 +02:00
|
|
|
// performanceMetrics: true, // should not be affected by debug.debug in order to allow benchmarking of the impact logging in console has
|
2018-09-23 19:46:40 +02:00
|
|
|
init: true,
|
2019-02-19 21:10:49 +01:00
|
|
|
debug: true,
|
|
|
|
// debug: false,
|
2019-03-10 23:27:50 +01:00
|
|
|
keyboard: true,
|
2019-04-25 22:02:10 +02:00
|
|
|
debugResizer: true,
|
2019-05-02 22:43:40 +02:00
|
|
|
debugArDetect: true,
|
2019-05-05 00:09:49 +02:00
|
|
|
scaler: true,
|
2018-11-18 03:29:16 +01:00
|
|
|
// debugStorage: false,
|
2019-02-16 01:19:29 +01:00
|
|
|
// debugStorage: true,
|
2018-11-07 00:03:06 +01:00
|
|
|
// comms: false,
|
2019-02-16 01:19:29 +01:00
|
|
|
// comms: true,
|
2018-04-26 00:40:09 +02:00
|
|
|
// showArDetectCanvas: true,
|
2019-01-02 20:36:00 +01:00
|
|
|
// flushStoredSettings: true,
|
2019-05-04 21:33:48 +02:00
|
|
|
// flushStoredSettings: false,
|
2019-02-16 01:19:29 +01:00
|
|
|
// playerDetectDebug: true,
|
2019-02-21 21:51:35 +01:00
|
|
|
// periodic: true,
|
2019-01-02 20:36:00 +01:00
|
|
|
// videoRescan: true,
|
2019-02-15 00:00:22 +01:00
|
|
|
// mousemove: true,
|
2018-02-16 00:19:08 +01:00
|
|
|
arDetect: {
|
2019-02-16 01:19:29 +01:00
|
|
|
// edgeDetect: true
|
2018-04-11 19:59:00 +02:00
|
|
|
},
|
|
|
|
canvas: {
|
2018-04-22 17:10:36 +02:00
|
|
|
debugDetection: true
|
2018-04-26 00:40:09 +02:00
|
|
|
},
|
|
|
|
debugCanvas: {
|
2018-07-10 21:58:26 +02:00
|
|
|
// enabled: true,
|
|
|
|
// guardLine: true
|
2018-06-27 23:55:37 +02:00
|
|
|
enabled: false,
|
|
|
|
guardLine: false
|
2018-02-16 00:19:08 +01:00
|
|
|
}
|
2017-09-24 01:54:46 +02:00
|
|
|
}
|
|
|
|
|
2017-12-31 18:26:59 +01:00
|
|
|
if(_prod){
|
2018-05-02 17:52:25 +02:00
|
|
|
__disableAllDebug(Debug);
|
|
|
|
}
|
|
|
|
|
|
|
|
function __disableAllDebug(obj) {
|
|
|
|
for(key in obj) {
|
|
|
|
if (obj.hasOwnProperty(key) ){
|
|
|
|
if(obj[key] instanceof Object)
|
|
|
|
__disableAllDebug(obj[key]);
|
|
|
|
else
|
|
|
|
obj[key] = false;
|
|
|
|
}
|
2017-12-31 18:26:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-24 01:54:46 +02:00
|
|
|
if(Debug.debug)
|
|
|
|
console.log("Guess we're debugging ultrawidify then. Debug.js must always load first, and others must follow.\nLoading: Debug.js");
|
2018-12-30 23:16:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default Debug;
|