Debugging Python scripts
GFI LanGuard Script DebuggerA GFI LanGuard module that allows you to write and debug custom scripts using a VBScript-compatible language., does not support debugging of Python scripts.
Any Python IDE, debugger or command line interpreter that runs Python scripts using the currently supported Python 2.5 and pywin32 distributions for Windows can help writing correct Python scripts for GFI LanGuard.
Some Python IDEs or interpreters useful for editing and debugging Python scripts are:
- PythonWin
- Winpdb
- SPE IDE - Python Editor
- IDLE and the Python interpreter that ships by default with the Python distribution.
Python scripts can be run and debugged in an environment similar to GFI LanGuard, by running the scripts using the file lpy.py available in the Scripts folder of GFI LanGuard: C:\ProgramData\GFI\LanGuard11\Scripts
Example
<Python25Folder>\python.exe "<ProductDataDir>\Scripts\lpy.py" <NameOfPythonScriptFileToTest>