Skip to content
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

perldb.ini undocumented in perldb, even though .perldb is #12937

Closed
p5pRT opened this issue Apr 29, 2013 · 7 comments
Closed

perldb.ini undocumented in perldb, even though .perldb is #12937

p5pRT opened this issue Apr 29, 2013 · 7 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 29, 2013

Migrated from rt.perl.org#117809 (status was 'open')

Searchable as RT117809$

@p5pRT
Copy link
Author

p5pRT commented Apr 29, 2013

From not.com@gmail.com

I have been trying to discover why the plain-vanilla perl debegger
isn't sourcing ./.perldb and found two issues while looking
through the perl5db.pl source code​:

1. lines 1372+ of perl5db.pl say​:
if ( -e "/dev/tty" ) { # this is the wrong metric!
  $rcfile = ".perldb";
}
else {
  $rcfile = "perldb.ini";
}

- since the comment shows that the writer knew it was a poor way
of testing for interactivity, I'm not reporting it, but I did need
to quote those lines for the "real" issue I want to report​:

The perl debugger will look in the current directory for either
.perldb or perdb.ini BUT the perldb perldoc only mentions .perldb
and omits any mention of perldb.ini

This is the case even in perl 5.16.2 "perldebug" man page- so even
though this report is being written from 5.10.0, this doc omission
persisists to recent perls.

Perl Info

Flags:
    category=core
    severity=low

Site configuration information for perl 5.10.0:

Configured by sshd_server at Sun May 24 12:08:53 2009.

Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=MSWin32, osvers=5.2, archname=MSWin32-x64-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -Wp64
-fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64
-DCONSERVATIVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO
-DPERL_MSVCRT_READFIX',
    optimize='-MD -Zi -DNDEBUG -Ox -GL -Wp64 -fp:precise',
    cppflags='-DWIN32'
    ccversion='14.00.40310.41', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='__int64', ivsize=8, nvtype='double', nvsize=8, Off_t='__int64',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -ltcg
-libpath:"C:\Perl64\lib\CORE"  -machine:AMD64'
    libpth=\lib
    libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib
uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
bufferoverflowU.lib msvcrt.lib
    perllibs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib
uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
bufferoverflowU.lib msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl510.lib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug
-opt:ref,icf -ltcg  -libpath:"C:\Perl64\lib\CORE"  -machine:AMD64'

Locally applied patches:
    ACTIVEPERL_LOCAL_PATCHES_ENTRY
    f7bbab select() generates 'Invalid parameter' messages on Windows Vista.
    8dc00b fix buffer overflow in win32_select()
    36f064 do/require don't treat '.\foo' or '..\foo' as absolute paths on
Windows
    287a96 fix -p function and Fcntl::S_IFIFO constant under Microsoft VC
compiler
    406878 avoids segfaults invoking S_raise_signal() (on Linux)
    40c7cc Win32 process ids can have more than 16 bits
    37589e Load 'loadable object' with non-default file extension
    d374f9 64-bit fix for Time::Local


@INC for perl 5.10.0:
    c:/perl64/site/lib
    c:/perl64/lib
    .


Environment for perl 5.10.0:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=c:\perl64\bin;C:\Program Files
(x86)\Teradata\Client\14.00\AXSMOD\;C:\Program Files
(x86)\Teradata\Client\14.00\AXSMOD\;C:\Program Files
(x86)\Teradata\Client\14.00\bin\;C:\Program
Files\Teradata\Client\14.00\bin\;C:\Program Files
(x86)\Teradata\Client\14.00\CLIv2\;C:\Program
Files\Teradata\Client\14.00\CLIv2\;C:\Program Files
(x86)\Teradata\Client\14.00\ODBC Driver for Teradata\Lib\;C:\Program
Files\Teradata\Client\14.00\ODBC Driver for Teradata
nt-x8664\Lib\;C:\Program Files (x86)\Teradata\Client\14.00\Shared ICU
Libraries for Teradata\lib\;C:\Program Files\Teradata\Client\14.00\Shared
ICU Libraries for Teradata\lib\;C:\Program
Files\EMC\PowerCommon\;C:\Program Files\EMC\PowerPath\;C:\Program
Files\EMC\PowerPath\32bit\;C:\Program
Files\EMC\RSA\CST\lib\;C:\perl\Perl\bin\;C:\Program Files
(x86)\NCR\Teradata
Client\cliv2\;C:\Perl64\site\bin;C:\Perl64\bin;C:\Program
Files\HP\NCU;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\BMCSOF~1\Patrol3\bin;C:\Program
Files\BMC Software\common\globalc\bin\Windows-x86;C:\Program Files\BMC
Software\common\globalc\bin\Windows-x86-64;C:\Program Files\BMC
Software\Patrol3\BEST1\7.5.10\bgs\bin;C:\Program Files\TortoiseSVN\bin
    PERL_BADLANG (unset)
    SHELL (unset)

@p5pRT
Copy link
Author

p5pRT commented May 9, 2013

From @jkeenan

On Mon Apr 29 15​:11​:16 2013, not.com@​gmail.com wrote​:
[snip]

the "real" issue I want to report​:

The perl debugger will look in the current directory for either
.perldb or perdb.ini BUT the perldb perldoc only mentions .perldb
and omits any mention of perldb.ini

I suspect the issue that will emerge here is​: What information should
be in the POD for lib/perl5db.pl and what should be in pod/perldebug.pod?

Since I've never meddled with .perldb or perldb.ini, I don't have an
answer to that.

However, if you want to move the discussion forward, may I suggest that
you provide a patch to pod/perldebug.pod that you think would improve
the situation?

If you can supply a patch, please provide it as an email attachment or
an attachment to RT #117809, rather than in the body of an email or posting.

Thank you very much.
Jim Keenan

@p5pRT
Copy link
Author

p5pRT commented May 9, 2013

The RT System itself - Status changed from 'new' to 'open'

@fecundf
Copy link

fecundf commented Sep 27, 2020

Here's a pitch to patch pod
perldebug.pod.patch.txt

@xsawyerx
Copy link
Member

Here's a pitch to patch pod
perldebug.pod.patch.txt

Thank you. :)

I can commit this to blead or you could create a Pull Request (or provide a full patch file with credit) and have your name added to AUTHORS.

Which would you like?

@fecundf
Copy link

fecundf commented Sep 27, 2020

Go ahead and commit it in your account- when I have something substantial enough to fork & PR will be happy to, this doc adjustment is tiny!

xsawyerx added a commit that referenced this issue Sep 27, 2020
@xsawyerx
Copy link
Member

Done in bf8d11e. Thank you. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants