Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add debug page

  • Loading branch information...
commit 9a252e098d49c5caca2481118e53be9cc5e5bf2e 1 parent 5062d26
@autarch autarch authored
View
7 lib/VegGuide/Controller/Site/Admin.pm
@@ -123,4 +123,11 @@ sub users_with_profiles : Local {
$c->stash()->{users} = VegGuide::User->All( with_profile => 1 );
}
+sub debug : Local {
+ my $self = shift;
+ my $c = shift;
+
+ $c->stash()->{template} = '/site/admin/debug';
+}
+
1;
View
16 share/mason/site/admin/debug
@@ -0,0 +1,16 @@
+<h2>%ENV</h2>
+
+<pre>
+<% Data::Dumper::Concise::Dumper(\%ENV) %>
+
+</pre>
+
+<h2>$c->engine()->env()</h2>
+
+<pre>
+<% Data::Dumper::Concise::Dumper($c->engine()->env()) %>
+</pre>
+
+<%once>
+use Data::Dumper::Concise ();
+</%once>
Please sign in to comment.
Something went wrong with that request. Please try again.