comparison mercurial/dispatch.py @ 25833:8243e999f22b

debugger: mark developer-only option (and rearrange comment)
author Matt Mackall <mpm@selenic.com>
date Thu, 25 Jun 2015 17:45:49 -0500
parents 328739ea70c3
children aca8ae2b0cb2
comparison
equal deleted inserted replaced
25832:5857be01962e 25833:8243e999f22b
127 # copy configs that were passed on the cmdline (--config) to 127 # copy configs that were passed on the cmdline (--config) to
128 # the repo ui 128 # the repo ui
129 for sec, name, val in cfgs: 129 for sec, name, val in cfgs:
130 req.repo.ui.setconfig(sec, name, val, source='--config') 130 req.repo.ui.setconfig(sec, name, val, source='--config')
131 131
132 # if we are in HGPLAIN mode, then disable custom debugging 132 # developer config: ui.debugger
133 debugger = ui.config("ui", "debugger") 133 debugger = ui.config("ui", "debugger")
134 debugmod = pdb 134 debugmod = pdb
135 if not debugger or ui.plain(): 135 if not debugger or ui.plain():
136 # if we are in HGPLAIN mode, then disable custom debugging
136 debugger = 'pdb' 137 debugger = 'pdb'
137 elif '--debugger' in req.args: 138 elif '--debugger' in req.args:
138 # This import can be slow for fancy debuggers, so only 139 # This import can be slow for fancy debuggers, so only
139 # do it when absolutely necessary, i.e. when actual 140 # do it when absolutely necessary, i.e. when actual
140 # debugging has been requested 141 # debugging has been requested