Click or drag to resize

DebuggerClientSetBreakpointByUrlAsync Method

Version 130.1.90
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.Core (in CefSharp.Core.dll) Version: 129.0.110.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  Int32
Line number to set breakpoint at.
url  String  (Optional)
URL of the resources to set breakpoint on.
urlRegex  String  (Optional)
Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or`urlRegex` must be specified.
scriptHash  String  (Optional)
Script hash of the resources to set breakpoint on.
columnNumber  NullableInt32  (Optional)
Offset in the line to set breakpoint at.
condition  String  (Optional)
Expression to use as a breakpoint condition. When specified, debugger will only stop on thebreakpoint if this expression evaluates to true.

Return Value

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