diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-09-03 09:11:15 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-09-03 09:11:30 +0900 |
commit | b3f4973b2543d8cc947203cc82c0122cd45c06c7 (patch) | |
tree | 97b949e380dd1d55a5d45ecfcc089de7058a0ea5 /rplugin | |
parent | b6226f7efe913e21786cf3e76a6e8d678cf1061b (diff) | |
download | deoplete.nvim-b3f4973b2543d8cc947203cc82c0122cd45c06c7.zip |
Fix #337 pdb remote debug support
Diffstat (limited to 'rplugin')
-rw-r--r-- | rplugin/python3/deoplete/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rplugin/python3/deoplete/__init__.py b/rplugin/python3/deoplete/__init__.py index ab21d64..9897950 100644 --- a/rplugin/python3/deoplete/__init__.py +++ b/rplugin/python3/deoplete/__init__.py @@ -60,3 +60,10 @@ class DeopleteHandlers(object): def on_event(self, context): context['rpc'] = 'deoplete_on_event' self.__deoplete.on_event(context) + +def pdb_handler(sig, frame): + import pdb + pdb.Pdb().set_trace(frame) + +if __name__ == '__main__': + signal.signal(signal.SIGUSR1, pdb_handler) |