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
Debugging Python application ‘’ …"
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”

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

More on debug python: