Add "stop on redirect" and "always profile" debugging options
Summary: Currently, it's hard to debug performance issues on POST pages. Add flags to stop redirects and always collect profiles. Also fix an issue with "all" profiles. This feature is mostly just for profiling DarkConsole itself and is rarely used, I think it's been broken for some time. There's no way to get to it with the UI. NOTE: Some JS workflows don't stop on redirect because they use JS/AJAX redirects. Test Plan: Enabled options, browsed, got stopped on redirects and had profiles generated. Disabled options and verified redirects and profiles work normally. Reviewers: vrana, btrahan Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D2990
This commit is contained in:
@@ -1199,4 +1199,21 @@ return array(
|
||||
'style.monospace' => '10px "Menlo", "Consolas", "Monaco", monospace',
|
||||
|
||||
|
||||
// -- Debugging ------------------------------------------------------------- //
|
||||
|
||||
// Enable this to change HTTP redirects into normal pages with a link to the
|
||||
// redirection target. For example, after you submit a form you'll get a page
|
||||
// saying "normally, you'd be redirected...". This is useful to examine
|
||||
// service or profiler information on write pathways, or debug redirects. It
|
||||
// also makes the UX horrible for normal use, so you should enable it only
|
||||
// when debugging.
|
||||
//
|
||||
// NOTE: This does not currently work for forms with Javascript "workflow",
|
||||
// since the redirect happens in Javascript.
|
||||
'debug.stop-on-redirect' => false,
|
||||
|
||||
// Enable this to always profile every page. This is very slow! You should
|
||||
// only enable it when debugging.
|
||||
'debug.profile-every-request' => false,
|
||||
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user