DebuggerClientSetBreakpointByUrlAsync Method |
Version 104.4.240
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: 104.4.240.0 (104.4.240.0)
Syntax public Task<SetBreakpointByUrlResponse> SetBreakpointByUrlAsync(
int lineNumber,
string url = null,
string urlRegex = null,
string scriptHash = null,
int? columnNumber = null,
string condition = null
)
public:
Task<SetBreakpointByUrlResponse^>^ SetBreakpointByUrlAsync(
int lineNumber,
String^ url = nullptr,
String^ urlRegex = nullptr,
String^ scriptHash = nullptr,
Nullable<int> columnNumber = nullptr,
String^ condition = nullptr
)
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:
TaskSetBreakpointByUrlResponsereturns System.Threading.Tasks.Task<SetBreakpointByUrlResponse>
See Also