Home > OS >  Why aren't perl variables showing in the eclipse debugger with perl EPIC?
Why aren't perl variables showing in the eclipse debugger with perl EPIC?

Time:05-04

Here is my system configuration.

Perl-Epic 0.7.8

Strawberry Perl 5.32.1 64 bit.

PadWalker 2.5 installed with Strawberry perl

Here is what I have already read. enter image description here

CodePudding user response:

The answer appears to lie in the module documentation for PadWalker which states, "PadWalker is a module which allows you to inspect (and even change!) lexical variables in any subroutine which called you. It will only show those variables which are in scope at the point of the call." The key point is that declaring the variable with the my keyword is what causes the variable to be declared with scope.

Moreover, the PERL-EPIC documentation for Eclipse indicates that it relies on PadWalker to provide a debug capability. Therefore the ability to inspect variables in the Eclipse debugger using that specific plugin depends on explicitly declaring variables.

You can see in the image here that the variables show up when declared.
enter image description here

  • Related