Skip to content

Commit

Permalink
Merge pull request #252 from mbarbon/fix-perl-hash-navigation
Browse files Browse the repository at this point in the history
For Perl, trust the full name as sent by the debugger
  • Loading branch information
BlackIkeEagle authored Feb 10, 2018
2 parents a35e98c + 81a6b35 commit f703ba4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/python/vdebug/dbgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 + \
Expand All @@ -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:
Expand Down

0 comments on commit f703ba4

Please sign in to comment.