Print hotcodereplace messages
This commit is contained in:
parent
b92a89f0d4
commit
afb912dd08
1 changed files with 15 additions and 9 deletions
|
|
@ -23,12 +23,18 @@ class JavaDebugAdapter( object ):
|
||||||
|
|
||||||
def OnEvent_hotcodereplace( self, message ):
|
def OnEvent_hotcodereplace( self, message ):
|
||||||
# Hack for java debug server hot-code-replace
|
# Hack for java debug server hot-code-replace
|
||||||
if utils.Call( 'confirm',
|
body = message.get( 'body' ) or {}
|
||||||
'Code has changed, hot reload?',
|
|
||||||
'&Yes,&No',
|
if body.get( 'type' ) != 'hotcodereplace':
|
||||||
1,
|
return
|
||||||
'Question' ) == 1:
|
|
||||||
self.debug_session._connection.DoRequest( None, {
|
if body.get( 'changeType' ) == 'BUILD_COMPLETE':
|
||||||
'command': 'redefineClasses',
|
if utils.AskForInput( 'Code has changed, hot reload? [Y/N] ',
|
||||||
'arguments': {},
|
'Y' ).upper()[ 0 ] == 'Y':
|
||||||
} )
|
self.debug_session._connection.DoRequest( None, {
|
||||||
|
'command': 'redefineClasses',
|
||||||
|
'arguments': {},
|
||||||
|
} )
|
||||||
|
elif body.get( 'message' ):
|
||||||
|
utils.UserMessage( 'Hot code replace: ' + body[ 'message' ] )
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue