A devel module for Drupal 8. It is a a skeleton module that creates an arbitrary page, where you can write and execute arbitrary code for test/debugging purposes. It is especially helpful for writing code and using a step debugger on the code, which can't be done as well with Devel module's Execute PHP page.
- Install the module.
- Visit /admin/php-debug. You should see a page that says, "Hello".
- Add your arbitrary code to php_debug/src/Controller/PhpDebugController::PhpDebugPage(). The method expects to return a render array.
- The rest is up to you.