There a way that works with simple test scripts here.
In SlickEdit, with the python project open:
1) Go to Build -> Python Options, Debug tab, change the debugger connection port to "Specific port", and set it to something that will work on your system. Default of 9000 should be good in most cases.
2) In the Debug menu, if the "pydbgp Listen in Background" item is not already checked, select it, otherwise leave it alone.
In the module you want to break in, you can import 'brk' from dbgp.client and call it with the host and port to break. Here's an example test program:
from dbgp.client import brk
def check():
for i in range(1, 10):
if i == 5:
brk(host='localhost', port=9000)
brk(host='localhost', port=9000) # Repeated intentionally, see below.
else:
print(i)
print("done")
check()
Adjust the break calls to use the port you gave to SlickEdit. The brk() call is repeated to get around a bug, where we just continue the process after the initial break that starts the debugging session. If you know which break you'll hit first, you can just double up that one.
When running scons, you'll need to set the PYTHONPATH to include the pydbgp library we ship with. My install is at /opt/se1702, so my command line for the test program was:
PYTHONPATH=/opt/se1702/resource/tools/pydbgp-1.1.0-1/python3lib python3 /tmp/test.py
If it's using Python2, adjust python path to ".../pydbgp-1.1.0-1/pythonlib"
This should work even if the scons modules are spawned in new processes.