зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1522138 - [release 120] put log points behind a flag (#7761). r=dwalsh
This commit is contained in:
Родитель
960bb668a9
Коммит
ee43602c94
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче