mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
This reverts commit c315404db80c92a695531b0aa4bcf61c125a3bff, reversing changes made to b00583bd4e7169a6b952633df718268904f2bd0c. Source-Repo: https://github.com/servo/servo Source-Revision: 47d6d958f58f5011742a18abcdd5a76bf4390966
31 lines
891 B
Python
31 lines
891 B
Python
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
"""
|
|
This module contains a set of function to gather information about the
|
|
debugging capabilities of the platform. It allows to look for a specific
|
|
debugger or to query the system for a compatible/default debugger.
|
|
|
|
The following simple example looks for the default debugger on the
|
|
current platform and launches a debugger process with the correct
|
|
debugger-specific arguments:
|
|
|
|
::
|
|
|
|
import mozdebug
|
|
|
|
debugger = mozdebug.get_default_debugger_name()
|
|
debuggerInfo = mozdebug.get_debugger_info(debugger)
|
|
|
|
debuggeePath = "toDebug"
|
|
|
|
processArgs = [self.debuggerInfo.path] + self.debuggerInfo.args
|
|
processArgs.append(debuggeePath)
|
|
|
|
run_process(args, ...)
|
|
|
|
"""
|
|
|
|
from mozdebug import *
|