Differences between revisions 11 and 12
Revision 11 as of 2013-09-02 05:00:40
Size: 461
Editor: EvelynP97
Comment:
Revision 12 as of 2013-09-14 16:39:48
Size: 2179
Editor: mpm
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Greetings. Let me begin by telling you the author's name - Lorenzo. http://thumbs.dreamstime.com/thumbimg_666/1328670596gbI8Ri.jpg Data-processing is his day job now. West Virginia may be the exclusive place he is been moving into. It is not a standard thing-but what he enjoys performing is to period but he is been dealing with new things lately. His wife and he keep a website. You might want to test it out: http://www.youtube.com/watch?v=IHkcnRMVdxc Mercurial has a bunch of features for debugging problems that are useful for developers to know about.

See also: DebuggingTests

|||||| '''Global Options''' ||
|| {{{-v, --verbose}}} || show more verbose output ||
|| {{{--debug}}} || show extended debugging output ||
|| {{{--traceback}}} || show Python tracebacks that are otherwise hidden ||
|| {{{--profile}}} || generate performance profiling information ||
|| {{{--debugger}}} || drop into the built-in source-level debugger (more below) ||

 .

|||||| '''Debug Commands''' ||
|| {{{ debugcheckstate }}} || validate the correctness of the current dirstate ||
|| {{{ debugconfig }}} || show combined config settings from all hgrc files ||
|| {{{ debugdata }}} || dump the contents of an data file revision ||
|| {{{ debugindex }}} || dump the contents of an index file ||
|| {{{ debugindexdot }}} || dump an index DAG as a .dot file ||
|| {{{ debugrename }}} || dump rename information ||
|| {{{ debugstate }}} || show the contents of the current dirstate ||
|| {{{ debugwalk }}} || show how files match on given patterns ||

To get a complete up-to-date list of all available debug commands use {{{hg debugcomplete debug}}}:
{{{
> hg debugcomplete debug
debugancestor
debugcheckstate
debugcomplete
debugconfig
debugdata
debugdate
debugfsinfo
debugindex
debugindexdot
debuginstall
debugrawcommit
debugrebuildstate
debugrename
debugsetparents
debugstate
debugwalk
}}}

Documentation for some debug commands is available through {{{hg help}}}:
{{{
> hg help debugstate
hg debugstate

show the contents of the current dirstate

use "hg -v help debugstate" to show global options
}}}

=== using the debugger ===

{{{hg --debugger <command>}}} will drop you at the debug prompt shortly before command execution. This
will allow you to set breakpoints, singlestep code, inspect data structures, and run arbitrary bits of Python
code. Help is available with '?'.

If you let Mercurial run (with 'cont'), the debugger will be reinvoked if an exception occurs. This is useful for diagnosing tracebacks in situ.
----
CategoryInternals

Mercurial has a bunch of features for debugging problems that are useful for developers to know about.

See also: DebuggingTests

Global Options

-v, --verbose

show more verbose output

--debug

show extended debugging output

--traceback

show Python tracebacks that are otherwise hidden

--profile

generate performance profiling information

--debugger

drop into the built-in source-level debugger (more below)

Debug Commands

 debugcheckstate 

validate the correctness of the current dirstate

 debugconfig 

show combined config settings from all hgrc files

 debugdata 

dump the contents of an data file revision

 debugindex 

dump the contents of an index file

 debugindexdot 

dump an index DAG as a .dot file

 debugrename 

dump rename information

 debugstate 

show the contents of the current dirstate

 debugwalk 

show how files match on given patterns

To get a complete up-to-date list of all available debug commands use hg debugcomplete debug:

> hg debugcomplete debug
debugancestor
debugcheckstate
debugcomplete
debugconfig
debugdata
debugdate
debugfsinfo
debugindex
debugindexdot
debuginstall
debugrawcommit
debugrebuildstate
debugrename
debugsetparents
debugstate
debugwalk

Documentation for some debug commands is available through hg help:

> hg help debugstate
hg debugstate

show the contents of the current dirstate

use "hg -v help debugstate" to show global options

using the debugger

hg --debugger <command> will drop you at the debug prompt shortly before command execution. This will allow you to set breakpoints, singlestep code, inspect data structures, and run arbitrary bits of Python code. Help is available with '?'.

If you let Mercurial run (with 'cont'), the debugger will be reinvoked if an exception occurs. This is useful for diagnosing tracebacks in situ.


CategoryInternals

DebuggingFeatures (last edited 2018-03-14 19:43:27 by HollisBlanchard)