DebugConsole must now be created from components
Remove the default console from UI.qml and add a utils.js function to create one quickly. Using this function from the component we actually want to debug gives the console full access to that component's scope, children IDs, etc.
This commit is contained in:
@@ -41,6 +41,11 @@ function makePopup(url, parent=null, properties={}, callback=null,
|
||||
}
|
||||
|
||||
|
||||
function debug(target, callback=null) {
|
||||
return Utils.makeObject("DebugConsole.qml", target, { target }, callback)
|
||||
}
|
||||
|
||||
|
||||
function isEmptyObject(obj) {
|
||||
return Object.entries(obj).length === 0 && obj.constructor === Object
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user