Rudimentary support for listing breakpoints using the quickfix window
This commit is contained in:
parent
ba456e863d
commit
3092c06cd7
3 changed files with 53 additions and 0 deletions
|
|
@ -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' )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue