Customizing

ppms.debugging

Die nachfolgenden Inhalte sind nur in englischer Sprache verfügbar.

The debugging package contains code to facilitate debugging of Python code

Functions

Function

Parameters

Return Value

Description

ask_for_password()


Password string or None

Ask the user for a password to use for identification of remote debugging instances

start_remote_debugger(password, show_message=True)

password: Password to identify the remote debugger

show_message: True / False


Start the remote Python debugger (rpdb2) with the chosen password. The password must start with a letter and not contain any umlauts. When show_message is True, a message appears to the user, telling him to connect now.

pycharm.activate_debugger(host, port)

host: Given host

port: Given port


Example:

from ppms.debugging import pycharm

def function_you_want_to_debug():
    pycharm.activate_debugger(host='host.docker.internal', port=62568)

    # ...

Tip:

  • By default the debugee will wait 30 seconds for the debugger to connect. This can be changed with the global setting debugger_timeout