debug python server

i want to debug python script on digi gateway in digi esp for python ide, but i am facing trouble when i go for run configuration the its showing on console like this "BusyBox v1.20.2 (2018-01-03 17:13:19 CET) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.

/userfs/WEB/python $ python dpdsrv.py
Debugging Python application ‘xbeeecho.py’ …"
but debug icons are not showing on screen and arrow also not showing at startup

please suggest me to solve this issue

Python has a debugger , which is available as a module called pdb . It supports setting conditional breakpoints , stepping through the source code one line at a time, stack inspection, and more.

import pdb
msg = “this is a test”
pdb.set_trace()
print(msg)

Insert pdb.set_trace() anywhere and it will function as a breakpoint . When you execute the script by python test.py, you will in the debug mode.

More on debug python: http://net-informations.com/python/iq/debug.htm