DebuggerClient.SetBreakpointByUrlAsync Method |
Version 111.2.70
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: 111.2.70.0 (111.2.70.0)
Syntaxpublic 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: System.Int32
Line number to set breakpoint at. - url (Optional)
- Type: System.String
URL of the resources to set breakpoint on. - urlRegex (Optional)
- Type: System.String
Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or`urlRegex` must be specified. - scriptHash (Optional)
- Type: System.String
Script hash of the resources to set breakpoint on. - columnNumber (Optional)
- Type: System.Nullable<Int32>
Offset in the line to set breakpoint at. - condition (Optional)
- Type: System.String
Expression to use as a breakpoint condition. When specified, debugger will only stop on thebreakpoint if this expression evaluates to true.
Return Value
Type:
Task<SetBreakpointByUrlResponse>returns System.Threading.Tasks.Task<SetBreakpointByUrlResponse>
See Also