breakpoints list: fix listing while debugging
Also, open the quickfix list when listing breakpoints, and add a test
This commit is contained in:
parent
6a1c9a6b52
commit
8c4112cd1f
3 changed files with 84 additions and 3 deletions
|
|
@ -979,7 +979,13 @@ class DebugSession( object ):
|
|||
self._stackTraceView.OnStopped( event )
|
||||
|
||||
def ListBreakpoints( self ):
|
||||
return self._breakpoints.ListBreakpoints()
|
||||
if self._connection:
|
||||
qf = self._codeView.BreakpointsAsQuickFix()
|
||||
else:
|
||||
qf = self._breakpoints.BreakpointsAsQuickFix()
|
||||
|
||||
vim.eval( 'setqflist( {} )'.format( json.dumps( qf ) ) )
|
||||
vim.command( 'copen' )
|
||||
|
||||
def ToggleBreakpoint( self, options ):
|
||||
return self._breakpoints.ToggleBreakpoint( options )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue