Click or drag to resize

DebuggerClientSetBreakpointByUrlAsync Method

Version 101.0.180
Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in `locations` property. Further matching script parsing will result in subsequent `breakpointResolved` events issued. This logical breakpoint will survive page reloads.

Namespace:  CefSharp.DevTools.Debugger
Assembly:  CefSharp (in CefSharp.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax
public Task<SetBreakpointByUrlResponse> SetBreakpointByUrlAsync(
	int lineNumber,
	string url = null,
	string urlRegex = null,
	string scriptHash = null,
	int? columnNumber = null,
	string condition = null
)

Parameters

lineNumber
Type: SystemInt32
Line number to set breakpoint at.
url (Optional)
Type: SystemString
URL of the resources to set breakpoint on.
urlRegex (Optional)
Type: SystemString
Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or`urlRegex` must be specified.
scriptHash (Optional)
Type: SystemString
Script hash of the resources to set breakpoint on.
columnNumber (Optional)
Type: SystemNullableInt32
Offset in the line to set breakpoint at.
condition (Optional)
Type: SystemString
Expression to use as a breakpoint condition. When specified, debugger will only stop on thebreakpoint if this expression evaluates to true.

Return Value

Type: TaskSetBreakpointByUrlResponse
returns System.Threading.Tasks.Task<SetBreakpointByUrlResponse>
See Also