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
When the admin page gets a task request, it processes and returns data as JSON. Right before calling sending the json response and calling exit, would it be possible to also grab the contents of grav['debugger'] and extend the admin javascript to append those contents onto the existing debug log?
Basically, anything done inside an admin task cannot (currently) use the debugger - it has to either add debug material into the content you want to return, or dump it to the log. This can bite you in unexpected ways e.g. other plugins that extend grav and suddenly cannot reliably use the debugger inside their logic
If this sounds reasonable, it would likely also be wise to have the debugger include a line about the task being sent (e.g. "Sending task 'processmarkdown'"). There are a few other ways admin could be tweaked to know if the debugger was online and integrate nicely, but this is a solid first step
When the admin page gets a task request, it processes and returns data as JSON. Right before calling sending the json response and calling
exit
, would it be possible to also grab the contents ofgrav['debugger']
and extend the admin javascript to append those contents onto the existing debug log?Basically, anything done inside an admin task cannot (currently) use the debugger - it has to either add debug material into the content you want to return, or dump it to the log. This can bite you in unexpected ways e.g. other plugins that extend grav and suddenly cannot reliably use the debugger inside their logic
If this sounds reasonable, it would likely also be wise to have the debugger include a line about the task being sent (e.g. "Sending task 'processmarkdown'"). There are a few other ways admin could be tweaked to know if the debugger was online and integrate nicely, but this is a solid first step
For some context, see getgrav/grav-plugin-shortcode-core#60
The text was updated successfully, but these errors were encountered: