Skip to main content
Skip table of contents

ppms.debugging

The debugging package contains code to facilitate debugging of Python code

Functions

Function

Parameters

Return Value

Description

ask_for_password()


Password string or None

Asks 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:

CODE
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. You can change this in the global debugger_timeout setting

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.