⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 perldebug.1

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 1
📖 第 1 页 / 共 4 页
字号:
Continue until the return from the current subroutine.Dump the return value if the \f(CW\*(C`PrintRet\*(C'\fR option is set (default)..IP "<\s-1CR\s0>" 12.IX Item "<CR>"Repeat last \f(CW\*(C`n\*(C'\fR or \f(CW\*(C`s\*(C'\fR command..IP "c [line|sub]" 12.IX Xref "debugger command, c".IX Item "c [line|sub]"Continue, optionally inserting a one-time-only breakpointat the specified line or subroutine..IP "l" 12.IX Xref "debugger command, l".IX Item "l"List next window of lines..IP "l min+incr" 12.IX Item "l min+incr"List \f(CW\*(C`incr+1\*(C'\fR lines starting at \f(CW\*(C`min\*(C'\fR..IP "l min-max" 12.IX Item "l min-max"List lines \f(CW\*(C`min\*(C'\fR through \f(CW\*(C`max\*(C'\fR.  \f(CW\*(C`l \-\*(C'\fR is synonymous to \f(CW\*(C`\-\*(C'\fR..IP "l line" 12.IX Item "l line"List a single line..IP "l subname" 12.IX Item "l subname"List first window of lines from subroutine.  \fIsubname\fR maybe a variable that contains a code reference..IP "\-" 12.IX Xref "debugger command, -"List previous window of lines..IP "v [line]" 12.IX Xref "debugger command, v".IX Item "v [line]"View a few lines of code around the current line..IP "." 12.IX Xref "debugger command, ."Return the internal debugger pointer to the line lastexecuted, and print out that line..IP "f filename" 12.IX Xref "debugger command, f".IX Item "f filename"Switch to viewing a different file or \f(CW\*(C`eval\*(C'\fR statement.  If \fIfilename\fRis not a full pathname found in the values of \f(CW%INC\fR, it is considereda regex..Sp\&\f(CW\*(C`eval\*(C'\fRed strings (when accessible) are considered to be filenames:\&\f(CW\*(C`f (eval 7)\*(C'\fR and \f(CW\*(C`f eval 7\eb\*(C'\fR access the body of the 7th \f(CW\*(C`eval\*(C'\fRed string(in the order of execution).  The bodies of the currently executed \f(CW\*(C`eval\*(C'\fRand of \f(CW\*(C`eval\*(C'\fRed strings that define subroutines are saved and thusaccessible..IP "/pattern/" 12.IX Item "/pattern/"Search forwards for pattern (a Perl regex); final / is optional.The search is case-insensitive by default..IP "?pattern?" 12.IX Item "?pattern?"Search backwards for pattern; final ? is optional.The search is case-insensitive by default..IP "L [abw]" 12.IX Xref "debugger command, L".IX Item "L [abw]"List (default all) actions, breakpoints and watch expressions.IP "S [[!]regex]" 12.IX Xref "debugger command, S".IX Item "S [[!]regex]"List subroutine names [not] matching the regex..IP "t" 12.IX Xref "debugger command, t".IX Item "t"Toggle trace mode (see also the \f(CW\*(C`AutoTrace\*(C'\fR option)..IP "t expr" 12.IX Xref "debugger command, t".IX Item "t expr"Trace through execution of \f(CW\*(C`expr\*(C'\fR.See \*(L"Frame Listing Output Examples\*(R" in perldebguts for examples..IP "b" 12.IX Xref "breakpoint debugger command, b".IX Item "b"Sets breakpoint on current line.IP "b [line] [condition]" 12.IX Xref "breakpoint debugger command, b".IX Item "b [line] [condition]"Set a breakpoint before the given line.  If a conditionis specified, it's evaluated each time the statement is reached: abreakpoint is taken only if the condition is true.  Breakpoints mayonly be set on lines that begin an executable statement.  Conditionsdon't use \f(CW\*(C`if\*(C'\fR:.Sp.Vb 3\&    b 237 $x > 30\&    b 237 ++$count237 < 11\&    b 33 /pattern/i.Ve.IP "b subname [condition]" 12.IX Xref "breakpoint debugger command, b".IX Item "b subname [condition]"Set a breakpoint before the first line of the named subroutine.  \fIsubname\fR maybe a variable containing a code reference (in this case \fIcondition\fRis not supported)..IP "b postpone subname [condition]" 12.IX Xref "breakpoint debugger command, b".IX Item "b postpone subname [condition]"Set a breakpoint at first line of subroutine after it is compiled..IP "b load filename" 12.IX Xref "breakpoint debugger command, b".IX Item "b load filename"Set a breakpoint before the first executed line of the \fIfilename\fR,which should be a full pathname found amongst the \f(CW%INC\fR values..IP "b compile subname" 12.IX Xref "breakpoint debugger command, b".IX Item "b compile subname"Sets a breakpoint before the first statement executed after the specifiedsubroutine is compiled..IP "B line" 12.IX Xref "breakpoint debugger command, B".IX Item "B line"Delete a breakpoint from the specified \fIline\fR..IP "B *" 12.IX Xref "breakpoint debugger command, B".IX Item "B *"Delete all installed breakpoints..IP "a [line] command" 12.IX Xref "debugger command, a".IX Item "a [line] command"Set an action to be done before the line is executed.  If \fIline\fR isomitted, set an action on the line about to be executed.The sequence of steps taken by the debugger is.Sp.Vb 5\&  1. check for a breakpoint at this line\&  2. print the line if necessary (tracing)\&  3. do any actions associated with that line\&  4. prompt user if at a breakpoint or in single\-step\&  5. evaluate line.Ve.SpFor example, this will print out \f(CW$foo\fR every time line53 is passed:.Sp.Vb 1\&    a 53 print "DB FOUND $foo\en".Ve.IP "A line" 12.IX Xref "debugger command, A".IX Item "A line"Delete an action from the specified line..IP "A *" 12.IX Xref "debugger command, A".IX Item "A *"Delete all installed actions..IP "w expr" 12.IX Xref "debugger command, w".IX Item "w expr"Add a global watch-expression.  We hope you know what one of theseis, because they're supposed to be obvious..IP "W expr" 12.IX Xref "debugger command, W".IX Item "W expr"Delete watch-expression.IP "W *" 12.IX Xref "debugger command, W".IX Item "W *"Delete all watch-expressions..IP "o" 12.IX Xref "debugger command, o".IX Item "o"Display all options.IP "o booloption ..." 12.IX Xref "debugger command, o".IX Item "o booloption ..."Set each listed Boolean option to the value \f(CW1\fR..IP "o anyoption? ..." 12.IX Xref "debugger command, o".IX Item "o anyoption? ..."Print out the value of one or more options..IP "o option=value ..." 12.IX Xref "debugger command, o".IX Item "o option=value ..."Set the value of one or more options.  If the value has internalwhitespace, it should be quoted.  For example, you could set \f(CW\*(C`opager="less \-MQeicsNfr"\*(C'\fR to call \fBless\fR with those specific options.You may use either single or double quotes, but if you do, you mustescape any embedded instances of same sort of quote you began with,as well as any escaping any escapes that immediately precede thatquote but which are not meant to escape the quote itself.  In otherwords, you follow single-quoting rules irrespective of the quote;eg: \f(CW\*(C`o option=\*(Aqthis isn\e\*(Aqt bad\*(Aq\*(C'\fR or \f(CW\*(C`o option="She said, \e"Isn\*(Aqtit?\e""\*(C'\fR..SpFor historical reasons, the \f(CW\*(C`=value\*(C'\fR is optional, but defaults to1 only where it is safe to do so\*(--that is, mostly for Booleanoptions.  It is always better to assign a specific value using \f(CW\*(C`=\*(C'\fR.The \f(CW\*(C`option\*(C'\fR can be abbreviated, but for clarity probably shouldnot be.  Several options can be set together.  See \*(L"Configurable Options\*(R"for a list of these..IP "< ?" 12.IX Xref "debugger command, <"List out all pre-prompt Perl command actions..IP "< [ command ]" 12.IX Xref "debugger command, <".IX Item "< [ command ]"Set an action (Perl command) to happen before every debugger prompt.A multi-line command may be entered by backslashing the newlines..IP "< *" 12.IX Xref "debugger command, <"Delete all pre-prompt Perl command actions..IP "<< command" 12.IX Xref "debugger command, <<".IX Item "<< command"Add an action (Perl command) to happen before every debugger prompt.A multi-line command may be entered by backwhacking the newlines..IP "> ?" 12.IX Xref "debugger command, >"List out post-prompt Perl command actions..IP "> command" 12.IX Xref "debugger command, >".IX Item "> command"Set an action (Perl command) to happen after the prompt when you'vejust given a command to return to executing the script.  A multi-linecommand may be entered by backslashing the newlines (we bet youcouldn't have guessed this by now)..IP "> *" 12.IX Xref "debugger command, >"Delete all post-prompt Perl command actions..IP ">> command" 12.IX Xref "debugger command, >>".IX Item ">> command"Adds an action (Perl command) to happen after the prompt when you'vejust given a command to return to executing the script.  A multi-linecommand may be entered by backslashing the newlines..IP "{ ?" 12.IX Xref "debugger command, {"List out pre-prompt debugger commands..IP "{ [ command ]" 12.IX Item "{ [ command ]"Set an action (debugger command) to happen before every debugger prompt.A multi-line command may be entered in the customary fashion..SpBecause this command is in some senses new, a warning is issued ifyou appear to have accidentally entered a block instead.  If that'swhat you mean to do, write it as with \f(CW\*(C`;{ ... }\*(C'\fR or even\&\f(CW\*(C`do { ... }\*(C'\fR..IP "{ *" 12.IX Xref "debugger command, {"Delete all pre-prompt debugger commands..IP "{{ command" 12.IX Xref "debugger command, {{".IX Item "{{ command"Add an action (debugger command) to happen before every debugger prompt.A multi-line command may be entered, if you can guess how: see above..IP "! number" 12.IX Xref "debugger command, !".IX Item "! number"Redo a previous command (defaults to the previous command)..IP "! \-number" 12.IX Xref "debugger command, !".IX Item "! -number"Redo number'th previous command..IP "! pattern" 12.IX Xref "debugger command, !".IX Item "! pattern"Redo last command that started with pattern.See \f(CW\*(C`o recallCommand\*(C'\fR, too..IP "!! cmd" 12.IX Xref "debugger command, !!".IX Item "!! cmd"Run cmd in a subprocess (reads from \s-1DB::IN\s0, writes to \s-1DB::OUT\s0) See\&\f(CW\*(C`o shellBang\*(C'\fR, also.  Note that the user's current shell (well,their \f(CW$ENV{SHELL}\fR variable) will be used, which can interferewith proper interpretation of exit status or signal and coredumpinformation..IP "source file" 12.IX Xref "debugger command, source".IX Item "source file"Read and execute debugger commands from \fIfile\fR.\&\fIfile\fR may itself contain \f(CW\*(C`source\*(C'\fR commands..IP "H \-number" 12.IX Xref "debugger command, H".IX Item "H -number"Display last n commands.  Only commands longer than one character arelisted.  If \fInumber\fR is omitted, list them all..IP "q or ^D" 12.IX Xref "debugger command, q debugger command, ^D".IX Item "q or ^D"Quit.  (\*(L"quit\*(R" doesn't work for this, unless you've made an alias)This is the only supported way to exit the debugger, though typing\&\f(CW\*(C`exit\*(C'\fR twice might work..SpSet the \f(CW\*(C`inhibit_exit\*(C'\fR option to 0 if you want to be able to stepoff the end the script.  You may also need to set \f(CW$finished\fR to 0if you want to step through global destruction..IP "R" 12.IX Xref "debugger command, R".IX Item "R"Restart the debugger by \f(CW\*(C`exec()\*(C'\fRing a new session.  We try to maintainyour history across this, but internal settings and command-line optionsmay be lost..SpThe following setting are currently preserved: history, breakpoints,actions, debugger options, and the Perl command-lineoptions \fB\-w\fR, \fB\-I\fR, and \fB\-e\fR..IP "|dbcmd" 12.IX Xref "debugger command, |".IX Item "|dbcmd"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -