()
| 10 | export class Debug { |
| 11 | doLogTick = false; |
| 12 | constructor() { |
| 13 | if (DEBUG) { |
| 14 | // In IDLE otherwise all the files are not yet enabled since this is called during the file inventory |
| 15 | GLib.idle_add(GLib.PRIORITY_DEFAULT, () => { |
| 16 | const objects: any[] = [ |
| 17 | /* MsWindowManager, |
| 18 | MsWorkspaceManager, |
| 19 | MsThemeManager, |
| 20 | MsMain, |
| 21 | MsWorkspace, |
| 22 | MsDndManager, |
| 23 | MsResizeManager, |
| 24 | MsWindow, |
| 25 | MsFocusManager, |
| 26 | TaskBar, |
| 27 | TaskBarItem, |
| 28 | IconTaskBarItem, |
| 29 | TaskActiveIndicator, |
| 30 | TileableItem, |
| 31 | LayoutSwitcher, |
| 32 | TilingLayoutMenuItem, |
| 33 | ReorderableList, */ |
| 34 | ]; |
| 35 | objects |
| 36 | .filter((object) => object) |
| 37 | .forEach((object) => |
| 38 | this.addLogToFunctions(object.prototype) |
| 39 | ); |
| 40 | return false; |
| 41 | }); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | static logWithStackTrace(...args: any[]) { |
| 46 | this.log(...args, new Error().stack); |
nothing calls this directly
no test coverage detected