From 09850702cf5f3fbfc35eaa5eabbb4d6529d6aefe Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Tue, 12 Feb 2019 12:34:17 +0000 Subject: [PATCH] Print a message if we fail to get a PID --- python3/vimspector/debug_session.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python3/vimspector/debug_session.py b/python3/vimspector/debug_session.py index e4b2b59..1e239e1 100644 --- a/python3/vimspector/debug_session.py +++ b/python3/vimspector/debug_session.py @@ -457,6 +457,11 @@ class DebugSession( object ): 'utf-8' ).strip() self._logger.debug( 'Got PID: %s', pid ) + if not pid: + # FIXME: We should raise an exception here or something + utils.UserMessage( 'Unable to get PID', persist = True ) + return + cmd = ssh + remote[ 'attachCommand' ][:] for index, item in enumerate( cmd ):