WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP

Home Page:https://w.org/playground/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error modal doesn't show WordPress debug logs

adamziel opened this issue · comments

The error modal showing on a failed Blueprint execution only shows the JavaScript errors but no PHP errors. However, the most useful debugging information are often in the PHP code.

cc @bgrgicak

commented

This could be just a frontend issue. We should check if the PHP logs are printed in the console. If yes, then React didn't pick up the latest data. If no then the PHP logs weren't even sent to the logger from PHP-WASM.

They are printed in the console

commented

@adamziel how are you testing this?

When I add a unknown function to a blueprint, it fails, but there are no PHP logs in the browser console.

commented

At the time request.error is dispatched there is no error log file in my blueprint example.

This means that no PHP logs were recorded.