New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perl5db.pl accidental? *warn override #16857
Comments
From derhoermi@gmx.netHi,
https://perl5.git.perl.org/perl.git/commitdiff/b5679dc0b0f66c67e5dfb402dadb01eedc5529ae added
*warn = \&_db_warn;
which results in unexpected behaviour in remote debugging:
% PERLDB_OPTS='RemotePort=localhost:9999' perl -d -e "warn; sleep 100"
alongside
% nc -l -p 9999 Enter h or 'h h' for help, or 'man perldebug' for more help. main::(-e:1): warn; sleep 100
i.e., warnings are printed in the debugger, while `die` messages are printed on STDERR.
That's bad for debugger frontends like https://github.com/raix/vscode-perl-debug since they need to tell debugger and debuggee output apart from one another.
regards. |
From bjoern@hoehrmann.deOn Fri, 01 Mar 2019 14:02:46 -0800, derhoermi@gmx.net wrote:
Hmm, it still seems to me that the *warn override is there by accident, |
The RT System itself - Status changed from 'new' to 'open' |
From bjoern@hoehrmann.deOn Sat, 02 Mar 2019 03:14:56 -0800, bjoern wrote:
So, `perldoc perldebug` says for `warnLevel` To disable this default safe mode, set these values to something I had taken this to mean `warnLevel` defaults to `0` but it defaults |
Migrated from rt.perl.org#133875 (status was 'open')
Searchable as RT133875$
The text was updated successfully, but these errors were encountered: