Sherman IT
Showing posts with label
Test
.
Show all posts
Showing posts with label
Test
.
Show all posts
12 April 2022
How to debug or test python scripts using inspect module and print and input?
https://stackoverflow.com/questions/3056048/filename-and-line-number-of-python-script
At the top of your script,
from inspect import currentframe, getframeinfo
At the spot where you want to print the value of a variable,
print(f'Line #{
getframeinfo(currentframe())
.lineno}:\nDescription:\n{varName}\nEnd of Description
\n')
input()
20 November 2017
How to test if a web page is accessible outside your network
How to test if a web page is accessible outside your network?
https://www.computerhope.com/cgi-bin/isitup.cgi
Older Posts
Home
Subscribe to:
Posts (Atom)