Ewebmachine.Plug.Debug

A ewebmachine debug UI at /wm_debug

Add it before Ewebmachine.Plug.Run in your plug pipeline when you want debugging facilities.

if Mix.env == :dev, do: plug Ewebmachine.Plug.Debug

Then go to http://youhost:yourport/wm_debug, you will see the request list since the launch of your server. Click on any to get the ewebmachine debugging UI. The list will be automatically updated on new query.

The ewebmachine debugging UI

Debug UI example

Debug UI example

Source

Summary

call(conn, opts)

Callback implementation of Plug.call/2

init(opts)

Callback implementation of Plug.init/1

Functions

call(conn, opts)

Callback implementation of Plug.call/2.

Source
init(opts)

Callback implementation of Plug.init/1.

Source