Plug.Debugger
Plug.Debugger
A module (not a plug) for debugging in development.
This module is commonly used within a Plug.Builder
or a Plug.Router
and it wraps the call/2
function.
Notice Plug.Debugger
does not catch errors, as errors should still propagate so that the Elixir process finishes with the proper reason. This module does not perform any logging either, as all logging is done by the web server handler.
Note: If this module is used with Plug.ErrorHandler
, only one of them will effectively handle errors. For this reason, it is recommended that Plug.Debugger
is used before 登录查看完整内容