mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
Documentation: Update the DevTools document with console.log support
This commit is contained in:
parent
ffdce78b7b
commit
491d1621d4
Notes:
github-actions[bot]
2025-03-04 20:34:37 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/491d1621d48 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3801 Reviewed-by: https://github.com/AtkinsSJ
1 changed files with 7 additions and 0 deletions
|
@ -425,6 +425,13 @@ ID is then sent once the script is complete:
|
|||
<< {"from":"server0-console8","type":"evaluationResult","timestamp":1740417141889,"resultID":"server0-console8-3","input":"1+1","result":2,"exception":null,"exceptionMessage":null,"helperResult":null}
|
||||
```
|
||||
|
||||
Anytime console messages are evaluated by the page (`console.log`, `console.warn`, etc.), the server will independently
|
||||
notify the client without any prompt. The same grip serialization used for console results is used here.
|
||||
|
||||
```jsonc
|
||||
<< {"from":"server0-frame10","type":"resources-available-array","array":[["console-message",[{"level":"log","filename":"<eval>","line_number":1,"column_number":1,"time_stamp":1741096175644,"arguments":["hello!"]}]]]}
|
||||
```
|
||||
|
||||
### Session termination
|
||||
|
||||
When the user disconnects from the DevTools server, the client will send a few cleanup messages. We currently do not
|
||||
|
|
Loading…
Add table
Reference in a new issue