This middleware provides a debug view of web pages produced by the Pages middleware.
To use this middleware add it to the OWIN pipeline then run your code and request pages from your website but include debug=true in the query string of the page.
When you do this, instead of rendering the page itself, the Debug Middleware will intercept the request and render a page showing how that page would be rendered, including how the data binding context will be established etc.
builder.Register(ninject.Get<OwinFramework.Pages.DebugMiddleware.DebugInfoMiddleware>()) .As("Pages debug");
You can view debug information for any page that is produced by the Pages middleware by adding a query string parameter to the page URL. Below are some examples:
http://mywebsite.com/folder/page1?debug=true http://mywebsite.com/folder/page1?debug=xml http://mywebsite.com/folder/page1?debug=json http://mywebsite.com/folder/page1?debug=html http://mywebsite.com/folder/page1?debug=svg
If you write custom regions, layouts, components etc, you can include more detailed information in the debug output by overriding a protected method of the base class called PopulateDebugInfo<T>.