From 81a6b354b351647b2296bb87772cedf738ca1067 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 14 Aug 2016 13:33:54 +0200 Subject: [PATCH] For Perl, trust the full name as sent by the debugger The code as written only works for Perl arrays, and there is no need to apply more heuristics given the correct value is already in the response. --- plugin/python/vdebug/dbgp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/python/vdebug/dbgp.py b/plugin/python/vdebug/dbgp.py index 2a8e000b..3b717cec 100644 --- a/plugin/python/vdebug/dbgp.py +++ b/plugin/python/vdebug/dbgp.py @@ -666,8 +666,7 @@ def _determine_displayname(self,node): if self.is_parent: self.display_name = self.code else: - if self.language == 'php' or \ - self.language == 'perl': + if self.language == 'php': if self.parent.type == 'array': if node.get('name').isdigit(): self.display_name = self.parent.display_name + \ @@ -678,6 +677,8 @@ def _determine_displayname(self,node): else: self.display_name = self.parent.display_name + \ "->"+node.get('name') + elif self.language == 'perl': + self.display_name = node.get('fullname') else: name = node.get('name') if name is None: