Home/Support/Support Forum/debug python server
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

debug python server

0 votes
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
asked May 6, 2019 in Python by samar New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
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 test.py, you will in the debug mode.

More on debug python: http://net-informations.com/python/iq/debug.htm
answered Oct 24, 2019 by bennetcole New to the Community (1 point)