|
| 1 | +Command-line Options |
| 2 | +==================== |
| 3 | + |
| 4 | +The abbreviated forms are shown below with ``-`` and long forms are shown |
| 5 | +with ``--`` to reflect how they are shown in ``--help``. However, ``trepan3k``, |
| 6 | +and ``trepan3kc`` recognizes all of the following conventions for most options: |
| 7 | + |
| 8 | +* ``--`` *option* ``=`` *value* |
| 9 | +* ``--`` *option* *value* |
| 10 | +* ``-`` *option* ``=`` *value* |
| 11 | +* ``-`` *option* *value* |
| 12 | +* ``--`` *o* ``=`` *value* |
| 13 | +* ``--`` *o* *value* |
| 14 | +* ``-`` *o* ``=`` *value* |
| 15 | +* ``-`` *o* *value* |
| 16 | + |
| 17 | +``trepan3k`` |
| 18 | +------------ |
| 19 | + |
| 20 | +``trepan3k`` invokes the debugger. Unless options ``--client`` or |
| 21 | +``--server`` is used, the debugger runs entirely in the debugged process. |
| 22 | + |
| 23 | +Although you can enter this debugger without a program to be debugged, |
| 24 | +if there is a filename argument given, it indicates the program that |
| 25 | +will be run under the debugger. |
| 26 | + |
| 27 | + |
| 28 | +``--version`` |
| 29 | + Show trepan3k's version number and exit. |
| 30 | + |
| 31 | +``-h``, ``--help`` |
| 32 | + Show a help message which includes these options and exit. |
| 33 | + |
| 34 | +``-X``, ``--trace`` |
| 35 | + Show lines before executing them. This option also sets ``--batch``. |
| 36 | + |
| 37 | +``-F``, ``--fntrace`` |
| 38 | + Show functions before executing them. |
| 39 | + |
| 40 | +``--basename`` |
| 41 | + In reporting filename, show only the basename. This is useful, for example, |
| 42 | + in regression tests |
| 43 | + |
| 44 | +``--client`` |
| 45 | + Connect to an existing debugger process started with the ``--server`` option. See also options ``H`` and ``P`` |
| 46 | + |
| 47 | +``-x`` *debugger-command-path*, ``--command=`` *debugger-command-path* |
| 48 | + Execute commands from *debugger-command-path*. |
| 49 | + |
| 50 | +``--cd=`` *directory-path* |
| 51 | + Change current directory to *directory-path*. |
| 52 | + |
| 53 | +``--confirm`` |
| 54 | + Confirm potentially dangerous operations. |
| 55 | + |
| 56 | +``--no-confirm`` |
| 57 | + Do not confirm potentially dangerous operations. |
| 58 | + |
| 59 | +``--dbg_trepan`` |
| 60 | + Allow debugging the debugger. |
| 61 | + |
| 62 | +``--different`` |
| 63 | + Consecutive debugger stops should have different positions. |
| 64 | + |
| 65 | +``--edit-mode=`` { ``emacs`` | ``vi`` } |
| 66 | + Set debugger-input edit mode, either "emacs" or "vi", used by GNU readline, lineedit, or toolkit-prompt. |
| 67 | + |
| 68 | +``-e`` *debugger-command-string*, ``--exec=`` *debugger-command-string* |
| 69 | + List of debugger commands to execute. Separate the commands with ``;;`` |
| 70 | + |
| 71 | +``-H`` *IP-or-hostname*, ``--host=`` *IP-or-hostname* |
| 72 | + Connect to *IP* or hostname. Only valid if ``--client`` option is given. |
| 73 | + |
| 74 | +``--highlight=``{``light`` | ``dark``| ``plain``} |
| 75 | + Use syntax and terminal highlight output. The value ``plain`` indicates no highlighting |
| 76 | + |
| 77 | +``--private`` |
| 78 | + Don't register this as a global debugger |
| 79 | + |
| 80 | +``--main`` |
| 81 | + First stop should be in ``__main__`` |
| 82 | + |
| 83 | +``--no-main`` |
| 84 | + First stop should not be in ``__main__``. |
| 85 | + |
| 86 | +``--post-mortem`` |
| 87 | + Enter debugger on an uncaught (fatal) exception |
| 88 | + |
| 89 | +``--no-post-mortem`` |
| 90 | + Don't enter debugger on an uncaught (fatal) exception |
| 91 | + |
| 92 | + |
| 93 | +``-n``, ``--nx`` |
| 94 | + Don't execute commands found in any initialization files. |
| 95 | + |
| 96 | +``-o`` *path*, ``--output=`` *path* |
| 97 | + Write debugger's output (stdout) to FILE |
| 98 | + |
| 99 | +``-P`` *port-number*, ``--port=`` *port-number* |
| 100 | + Use TCP port number *port-number* for out-of-process connections. |
| 101 | + |
| 102 | +``--server`` |
| 103 | + Out-of-process server connection mode |
| 104 | + |
| 105 | +``--style=`` *pygments-style* |
| 106 | +Set output to pygments style; "none" uses 8-color rather than 256-color terminal |
| 107 | + |
| 108 | +``--sigcheck`` |
| 109 | + Set to watch for signal handler changes |
| 110 | + |
| 111 | +``-t`` *target*, ``--target=`` *target* |
| 112 | + Specify a target to connect to. Arguments should be of form, 'protocol address'. |
| 113 | + |
| 114 | +`--from_ipython`` Called from inside ipython |
| 115 | + |
| 116 | +``--annotate=`` *annotate-number* |
| 117 | + Use annotations to work inside GNU Emacs. |
| 118 | + |
| 119 | +``--prompt-toolkit`` |
| 120 | + Try using the Python prompt_toolkit module. |
| 121 | + |
| 122 | +``--no-prompt-toolkit`` |
| 123 | + Do not use prompt_toolkit |
| 124 | + |
| 125 | +``--`` |
| 126 | + Use this to separate debugger options from any options your Python script has. |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | +``trepan3kc`` |
| 131 | +------------- |
| 132 | + |
| 133 | +``trepan3kc`` can be used to connect to an out-of-process or remote process which is in remote-debug TCP/IP mode. |
| 134 | + |
| 135 | +Most of the options below are the same as in the ``trepan3k`` counterpart when the ``--client`` option is given. |
| 136 | + |
| 137 | + |
| 138 | +``--version`` |
| 139 | + Show trepan3k's version number and exit. |
| 140 | + |
| 141 | +``-h``, ``--help`` |
| 142 | + Show a help message which includes these options and exit. |
| 143 | + |
| 144 | +``-H`` *IP-or-hostname*, ``--host=`` *IP-or-hostname* |
| 145 | + Connect to *IP* or hostname. Only valid if ``--client`` option is given. |
| 146 | + |
| 147 | +``-P`` *port-number*, ``--port=`` *port-number* |
| 148 | + Use TCP port number *port-number* for out-of-process connections. |
| 149 | + |
| 150 | +``--pid=`` *pid* |
| 151 | + Use process-id *pid* to get FIFO names for out-of-process connections. |
0 commit comments