troubleshooting.md 1.2 KB

Troubleshooting and Debugging

This page contains a few tips to help you figure out what's wrong when Scribe seems to be acting up.

Increase the verbosity

By default, Scribe will try to keep going until it processes all routes and generates your docs. If it encounters any problems while processing a route (such as a missing @responseFile, or some invalid configuration leading to an exception being thrown), it will output a warning and the exception message, then move on to the next route.

If you need to see the full stack trace, you can run the command again with the --verbose flag. This will also output debug messages (such as the path Scribe takes in instantiating a model).

Turn on debug mode for your app

Sometimes you may see a 500 null response shown in the generated examples. This is usually because an error occured within your application during a response call. The quickest way to debug this is by setting app.debug to true in your response_calls.config section in your scribe.php file. Alternatively, you can set APP_DEBUG=true in your .env.docs file and run the command with --env docs.

Be sure you're accessing your docs correctly