__init__.py (914B)
1 # flake8: noqa 2 # This Source Code Form is subject to the terms of the Mozilla Public 3 # License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 # You can obtain one at http://mozilla.org/MPL/2.0/. 5 6 """ 7 This module contains a set of function to gather information about the 8 debugging capabilities of the platform. It allows to look for a specific 9 debugger or to query the system for a compatible/default debugger. 10 11 The following simple example looks for the default debugger on the 12 current platform and launches a debugger process with the correct 13 debugger-specific arguments: 14 15 :: 16 17 import mozdebug 18 19 debugger = mozdebug.get_default_debugger_name() 20 debuggerInfo = mozdebug.get_debugger_info(debugger) 21 22 debuggeePath = "toDebug" 23 24 processArgs = [self.debuggerInfo.path] + self.debuggerInfo.args 25 processArgs.append(debuggeePath) 26 27 run_process(processArgs, ...) 28 29 """ 30 31 from .mozdebug import *