Rudimentary support for listing breakpoints using the quickfix window

This commit is contained in:
Ben Jackson 2019-02-12 22:41:10 +00:00
commit 3092c06cd7
3 changed files with 53 additions and 0 deletions

View file

@ -168,6 +168,22 @@ class CodeView( object ):
file_name ) )
def BreakpointsAsQuickFix( self ):
qf = []
for file_name, breakpoints in self._breakpoints.items():
for breakpoint in breakpoints:
qf.append( {
'filename': file_name,
'lnum': breakpoint.get( 'line', 1 ),
'col': 1,
'type': 'L',
'valid': 1 if breakpoint.get( 'verified' ) else 0,
'text': "Line breakpoint - {}".format(
'VERIFIED' if breakpoint.get( 'verified' ) else 'INVALID' )
} )
return qf
def LaunchTerminal( self, params ):
# kind = params.get( 'kind', 'integrated' )