Problem
Objectives
Information
rpdb2
library you can debug the Python interpreter within PLANTA and outside the application server
Information
from ppms.debugging import start_embedded_debugger def function_to_debug(): # ... start_embedded_debugger(password='foobar') # ...
Information
Tip:
planta_server.conf
must be deactivated by setting ENABLE_PY_SERVICE_FUNCTIONS
to 0
Information
Information
Remote debugging
py/
Python directory of the PLANTA server is required, which contains a version of the pysrc/
directory which is prepared to a great extent and must be changed to the extent that it reflects the location of the debugging environment.
paths.py
file in the pysrc/
directory on your device must be changed.
PATHS_FROM_ECLIPSE_TO_PYTHON
variable for debug client and server.
os.path.abspath()
are correct and you only have to adjust the path to your local PLANTA Server Python code directory and the OLE directory of the client you wish to use (the working directory of your test system client with attached \Ole
subdirectory).
DEBUG_CLIENT_SERVER_TRANSLATION
variable must be set to True
in the pydevd_file_utils.py
as well, which should already be the case in the version available via TFS.
planta_server.conf
config/planta_server.conf
in the server directory of your test system as well as the relevant parameters.
Parameter ![]()
Type VALUE DEBUG_PYTHON boolean 1 DEBUG_PYTHON_HOST string host use of Eclipse with PyDev DEBUG_PYTHON_PORT number same as configured in the remote debug server of PyDev. Please select an arbitrary value and do not use default value 5678
planta_py_debug.debug_break()
function in the Python code is opened for the first time.
planta_py_debug
und py_debug
from planta_py_debug
must be imported and the debug flag above py_debug.set_debug_flag(True)
must be enabled.
planta_py_debug.debug_break()
in Python establishes a connection to Eclipse and enables you to set further break points in the future. planta_py_debug.debug_break()
behaves like a programmed break point, which is why caution should be exercised here.
planta_py_debug.debug_break()
.
Objectives
import ppms_debug ppms_debug.start_debugger(<string>)
Details
I | Attachment | History | Size | Date | Comment |
---|---|---|---|---|---|
![]() |
debugger_icon.JPG | r1 | 1.0 K | 2009-08-28 - 15:28 | Debugging Icon |