# debug python server

**URL:** <https://forums.digi.com/t/debug-python-server/20467>\
**Category:** Python\
**Tags:** debugging, debugger, digiesp, python-xbee, debug\
**Created:** [May 6, 2019, 9:07am UTC](https://forums.digi.com/t/debug-python-server/20467 "2019-05-06T09:07:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samar](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@samar](https://forums.digi.com/u/samar)\
**Post date:** [May 6, 2019, 9:07am UTC](https://forums.digi.com/t/debug-python-server/20467/1 "2019-05-06T09:07:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bennetcole](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@bennetcole](https://forums.digi.com/u/bennetcole)\
**Post date:** [October 24, 2019, 10:00am UTC](https://forums.digi.com/t/debug-python-server/20467/2 "2019-10-24T10:00:42Z")

</div>

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](http://net-informations.com/python/iq/debug.htm)
