Avoids the need to stop the current pveproxy and restart it in debug
mode, if one wants to get the debug un-minified sources for ExtJS,
for example.
For a local PVE instance the following URL would ensure you load the
debug sources:
https://localhost:8006/?debug#v1:0:18:4:25:19::8:20:28
For convenience allow to omit the parameters value, and default to
true, iow, ?debug and ?debug=1 are the same, one could force it off -
even if the server was started in debug mode - by using ?debug=0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
$wtversion = $1;
};
+ my $debug = $server->{debug};
+ if (exists $args->{debug}) {
+ $debug = !defined($args->{debug}) || $args->{debug};
+ }
+
my $vars = {
lang => $lang,
langfile => $langfile,
token => $token,
console => $args->{console},
nodename => $nodename,
- debug => $server->{debug},
+ debug => $debug,
version => "$version",
wtversion => $wtversion,
};