You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
webContents.debugger.sendCommand does not complete (callback) until something is loaded into the window #14810
@bughit Just like you can't debug an empty browser window with devtools you can't send any debugger messages to an empty browser window with the debugger API.
This is working as intended, there is nothing to debug until the page starts loading.
you can't send any debugger messages to an empty browser window
@MarshallOfSound Please clarify "can't". The attach and sendCommand calls do not fail and the message is not discarded or ignored, it's received and obeyed, so what is being delayed/buffered, the sending in the main process or the processing in the renderer?
Activity
MarshallOfSound commentedon Sep 26, 2018
@bughit Just like you can't debug an empty browser window with devtools you can't send any debugger messages to an empty browser window with the debugger API.
This is working as intended, there is nothing to debug until the page starts loading.
bughit commentedon Sep 26, 2018
@MarshallOfSound Please clarify "can't". The attach and sendCommand calls do not fail and the message is not discarded or ignored, it's received and obeyed, so what is being delayed/buffered, the sending in the main process or the processing in the renderer?
docs: clarify debugger.sendCommand timing and empty-result behavior
docs: clarify debugger.sendCommand timing and empty-result behavior
docs: clarify debugger.sendCommand timing and empty-result behavior (#…
docs: clarify debugger.sendCommand timing and empty-result behavior (#…
docs: clarify debugger.sendCommand timing and empty-result behavior (#…