getPossibleBreakpoints method
Returns possible locations for breakpoint. scriptId in start and end range locations should be
the same.
start
Start of range to search possible breakpoint locations in.
end
End of range to search possible breakpoint locations in (excluding). When not specified, end
of scripts is used as end of range.
restrictToFunction
Only consider locations which are in the same (non-nested) function as start.
Returns: List of the possible breakpoint locations.
Implementation
Future<List<BreakLocation>> getPossibleBreakpoints(Location start,
{Location? end, bool? restrictToFunction}) async {
var result = await _client.send('Debugger.getPossibleBreakpoints', {
'start': start,
if (end != null) 'end': end,
if (restrictToFunction != null) 'restrictToFunction': restrictToFunction,
});
return (result['locations'] as List)
.map((e) => BreakLocation.fromJson(e as Map<String, dynamic>))
.toList();
}