/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
import * as firefox from "./client/firefox";
import { asyncStore, verifyPrefSchema, prefs } from "./utils/prefs"; import { setupHelper } from "./utils/dbg"; import { setToolboxTelemetry } from "./utils/telemetry";
import {
bootstrapApp,
bootstrapStore,
bootstrapWorkers,
unmountRoot,
teardownWorkers,
} from "./utils/bootstrap";
import { initialBreakpointsState } from "./reducers/breakpoints"; import { initialSourcesState } from "./reducers/sources"; import { initialSourcesTreeState } from "./reducers/sources-tree"; import { initialUIState } from "./reducers/ui"; import { initialSourceBlackBoxState } from "./reducers/source-blackbox"; import { initialEventListenerState } from "./reducers/event-listeners";
async function syncBreakpoints() { const breakpoints = await asyncStore.pendingBreakpoints; const breakpointValues = Object.values(sanitizeBreakpoints(breakpoints)); return Promise.all(
breakpointValues.map(({ disabled, options, generatedLocation }) => { if (disabled) { return Promise.resolve();
} // Set the breakpoint on the server using the generated location as generated // sources are known on server, not original sources. return firefox.clientCommands.setBreakpoint(generatedLocation, options);
})
);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.