tame1 has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know how to set your .emacs so that if you have a perl script loaded in the current emacs window, and then invoke the command "perldb", it will cause perldb to run against the script in the window?

My real problem is that when I run the perldb command, it puts perl -e 0 in the window and I have no idea of the proper way to enter the file name I want to debug. I've tried just entering it - no good. erasing the -e doesn't work either. Nor the 0.

Before anyone asks, the instructions within perldb.el are not very helpful in this regard.

What does this little button do . .<Click>; "USER HAS SIGNED OFF FOR THE DAY"

Replies are listed 'Best First'.
Re: Emacs and PERLDB
by stefan k (Curate) on Mar 29, 2001 at 14:53 UTC
    Hi,
    I just took a quick look at it (I did not know it before)

    C-h f perldb tells me that it would start the debugger on the file in a buffer named *gud-FILE*. GUD is the Grant Unified Debugger for a small collection of languages. So maybe you should stick with that documentation (actually perldb is defined there; I don't have a file perldb.el at all). Furthermore it asks me how to run the debugger in the minibuffer. I tested it under XEmacs and Emacs in fairly current versions

    If this is all trivia to you, please excuse, if you'd like me to have a closer look at it, just message me in the CB

    Regards Stefan K

Re: Emacs and PERLDB
by Anonymous Monk on Mar 29, 2001 at 00:31 UTC
    When asked for the file I put 'perl path/filename'.
    Emacs didn't like it if I tried to pass command line parameters like 'perl -e path/filename'.