Add SetLineBreakpoint and ClaerLineBreakpoint APIs

These are useful for running tests (i.e. ensure there's a breakpiont at
the start of the test) and/or other programmatic usages.

They will also be needed for setting temporary breakpionts.
This commit is contained in:
Ben Jackson 2020-10-13 22:16:11 +01:00
commit 0d112d70a0
5 changed files with 105 additions and 44 deletions

View file

@ -1165,6 +1165,12 @@ class DebugSession( object ):
def ToggleBreakpoint( self, options ):
return self._breakpoints.ToggleBreakpoint( options )
def SetLineBreakpoint( self, file_name, line_num, options ):
return self._breakpoints.SetLineBreakpoint( file_name, line_num, options )
def ClearLineBreakpoint( self, file_name, line_num ):
return self._breakpoints.ClearLineBreakpoint( file_name, line_num )
def ClearBreakpoints( self ):
if self._connection:
self._codeView.ClearBreakpoints()