in reply to Re: Expect.pm debugging in Windows
in thread Expect.pm debugging in Windows

It's honestly a pretty simple script (not necessarily a GUI script), I am just most familiar using Eclipse with the Epic perl plugin to debug (and like you said step through code, set breakpoints, etc)

The expect module is just required by the perl script I am debugging (which I haven't encountered/used in my previous Perl development work). I will try the Cygwin/Strawberry Perl method and see if that helps as far as getting Expect to work on windows. Otherwise I will return to this thread and try some of the other suggestions or just use the non-GUI debugger method! I really do appreciate everyone's replies.

I was just trying to see if there was a simple, straightforward approach that someone else has found with getting Perl + Eclipse to work on Windows

Replies are listed 'Best First'.
Re^3: Expect.pm debugging in Windows
by LanX (Saint) on Apr 30, 2019 at 16:22 UTC
    What you are describing is very obscure in many dimensions

    Windows   X   Expect.pm   X   Debugger   X   EPIC/Eclipse

    My guess (???) is your real problem is remote debugging . °

    Like already said does the perl-debugger allow bidirectional communication via sockets.

    Like this you can run your script with Expect.pm on a Linux machine, even in a VM, and debug it from Windows.

    I'd be very surprised if EPIC didn't allow that.

    If that is not the answer you are seeking for, please try to split your general question into more specific parts

    i.e. tell us what's wrong with

    • Expect.pm
    • Windows
    • Perl Debugger
    • Eclipse / EPIC

    I'm afraid, there is no IDE which will help you overcome conceptional problems.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

    update

    °) Another guess is that you just need to install Expect.pm inside cygwin's Perl installation. This has nothing to do with debugger or IDE.

      I think your last point (installing Expect.pm through Cygwin) might be the path of least resistance for this problem! Like I said, I would be able to provide more details but I am kind of left to my own devices (and Google) to figure this out.

      The main issue is just that I am trying to debug this Perl script (so I can step through/set breakpoints etc) using EPIC plugin for Eclipse IDE (because that is what I am most familiar with for debugging Perl scripts), and I have ActivePerl installed as my Perl interpreter. From what I have read it seems like this is not the correct way to do it in Windows OS (and I am only used to doing Perl in a Linux VM that I had at my old job).

      Right now though I cannot modify my own computer software (need admin access) so I am attempting to get that access so I can try out Cygwin install method that you mentioned above. I really really appreciate your feedback to solve this problem! I apologize if I was not descriptive enough or too vague as to explaining what the issue actually is. The error message that I got from the Perl interpreter is this: "Can't locate Expect.pm in @INC" and after googling it seemed like its not straightforward to install that module using ActivePerl on Windows. Hopefully that helps!

      Thanks so much for your help!