From: Harry Putnam <hgp@sbcglobal.net>
Subject: Differences with perld amd cmdline perl -d
Date: Tue, 18 Feb 2003 16:59:17 GMT [thread overview]
Message-ID: <m27kbx5xuk.fsf@sbcglobal.net> (raw)
I notice a number of instances where running perld (perldebugger) from
emacs, give very different results from running perl -d at the
command line, on the same material.
Apparently something happens between emacs and terminal or somewhere
that changes things enough to get very different and somewhat useless
results.
Rather than post long winded perl code, as example I'll just say the
command looks like:
perl -d ./pdb.pl -l 6 7 -c <test.g
at the perld prompt.
Running the command from the command line, the perl debugger steps
thru the code and shows no problems.
Running it in emacs, it enters a `while' loop and never leaves that
loop.
while (<STDIN>) {
chomp;
print FILE_BK "
}
Pressing `p "<$_>\n" always reports a blank line
<>
As you see, the loop is confined to STDIN which is why the file is
fed with `< test.g' syntax. The script itself is intended to work only
in a pipe or with `cmd < infile' syntax.
Apparently emacs is confused about what is STDIN and never sees the
end of it. I suspect something technical about how emacs sees the
command to be the problem.
But have also noticed many other instances where at the cmdline the
debugger works as expected, like setting a break point then pressing
`r' to get to it.
On some scripts (not all or even most). The same proceedure in emacs
will not stop at the break point and just run right thru and finish,
maybe reporting problems. So there must be certain things that are
seen differently when viewed thru the emacs layer compared to from the
command line.
next reply other threads:[~2003-02-18 16:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-18 16:59 Harry Putnam [this message]
2003-02-18 23:21 ` Differences with perld amd cmdline perl -d Harry Putnam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m27kbx5xuk.fsf@sbcglobal.net \
--to=hgp@sbcglobal.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).