@@ -44,7 +44,8 @@ import { recordEvent } from "../../utils/telemetry";
4444
4545export type addBreakpointOptions = {
4646 condition ?: string ,
47- hidden ?: boolean
47+ hidden ?: boolean ,
48+ log ?: boolean
4849} ;
4950
5051/**
@@ -196,11 +197,10 @@ export function toggleBreakpoints(
196197 breakpoints : Breakpoint [ ]
197198) {
198199 return async ( { dispatch } : ThunkArgs ) => {
199- const promises = breakpoints . map (
200- breakpoint =>
201- shouldDisableBreakpoints
202- ? dispatch ( disableBreakpoint ( breakpoint . location ) )
203- : dispatch ( enableBreakpoint ( breakpoint . location ) )
200+ const promises = breakpoints . map ( breakpoint =>
201+ shouldDisableBreakpoints
202+ ? dispatch ( disableBreakpoint ( breakpoint . location ) )
203+ : dispatch ( enableBreakpoint ( breakpoint . location ) )
204204 ) ;
205205
206206 await Promise . all ( promises ) ;
@@ -283,12 +283,12 @@ export function remapBreakpoints(sourceId: string) {
283283 */
284284export function setBreakpointCondition (
285285 location : SourceLocation ,
286- { condition } : addBreakpointOptions = { }
286+ { condition, log = false } : addBreakpointOptions = { }
287287) {
288288 return async ( { dispatch, getState, client, sourceMaps } : ThunkArgs ) => {
289289 const bp = getBreakpoint ( getState ( ) , location ) ;
290290 if ( ! bp ) {
291- return dispatch ( addBreakpoint ( location , { condition } ) ) ;
291+ return dispatch ( addBreakpoint ( location , { condition, log } ) ) ;
292292 }
293293
294294 if ( bp . loading ) {
@@ -306,7 +306,7 @@ export function setBreakpointCondition(
306306 isOriginalId ( bp . location . sourceId )
307307 ) ;
308308
309- const newBreakpoint = { ...bp , disabled : false , condition } ;
309+ const newBreakpoint = { ...bp , disabled : false , condition, log } ;
310310
311311 assertBreakpoint ( newBreakpoint ) ;
312312
0 commit comments