Bug 1522138 - [release 120] put log points behind a flag (#7761). r=dwalsh

This commit is contained in:
Hubert Boma Manilla 2019-01-24 15:23:47 -05:00 коммит произвёл Jason Laster
Родитель 960bb668a9
Коммит ee43602c94
3 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -120,7 +120,11 @@ export function gutterMenu({
: gutterItems.addConditional)
};
let items = [toggleBreakpointItem, conditionalBreakpoint, logPoint];
let items = [toggleBreakpointItem, conditionalBreakpoint];
if (features.logPoints) {
items.push(logPoint)
}
if (breakpoint && breakpoint.condition) {
const remove = breakpoint.log ? conditionalBreakpoint : logPoint;

Просмотреть файл

@ -65,6 +65,7 @@ if (isDevelopment()) {
pref("devtools.debugger.features.original-blackbox", true);
pref("devtools.debugger.features.windowless-workers", false);
pref("devtools.debugger.features.event-listeners-breakpoints", true);
pref("devtools.debugger.features.log-points", true);
}
export const prefs = new PrefsHelper("devtools", {
@ -121,7 +122,8 @@ export const features = new PrefsHelper("devtools.debugger.features", {
componentPane: ["Bool", "component-pane"],
xhrBreakpoints: ["Bool", "xhr-breakpoints"],
originalBlackbox: ["Bool", "original-blackbox"],
eventListenersBreakpoints: ["Bool", "event-listeners-breakpoints"]
eventListenersBreakpoints: ["Bool", "event-listeners-breakpoints"],
logPoints: ["Bool", "log-points"]
});
export const asyncStore = asyncStoreHelper("debugger", {

Просмотреть файл

@ -72,3 +72,4 @@ pref("devtools.debugger.features.xhr-breakpoints", true);
pref("devtools.debugger.features.original-blackbox", true);
pref("devtools.debugger.features.windowless-workers", false);
pref("devtools.debugger.features.event-listeners-breakpoints", false);
pref("devtools.debugger.features.log-points", false);