Fix error reporting and update demo
This commit is contained in:
parent
5a09914ee7
commit
ef5ac26f48
3 changed files with 6 additions and 6 deletions
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
import logging
|
||||
import json
|
||||
import vim
|
||||
|
||||
_logger = logging.getLogger( __name__ )
|
||||
|
||||
|
|
@ -115,7 +116,8 @@ class DebugAdapterConnection( object ):
|
|||
if handler:
|
||||
handler( message )
|
||||
else:
|
||||
raise RuntimeError( 'Request failed: {0}'.format(
|
||||
_logger.error( 'Request failed: {0}'.format( message[ 'message' ] ) )
|
||||
vim.command( "echom 'Request failed: {0}'".format(
|
||||
message[ 'message' ] ) )
|
||||
|
||||
elif message[ 'type' ] == 'event':
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ class DebugSession( object ):
|
|||
self._connection.DoRequest( handler, {
|
||||
'command': 'initialize',
|
||||
'arguments': {
|
||||
'adapterID': 'cppdbg',
|
||||
'adapterID': 'cppdbg', # Apparently only MS debugger cares
|
||||
'linesStartAt1': True,
|
||||
'columnsStartAt1': True,
|
||||
'pathFormat': 'path',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue