line-numbers

Debugging: Get filename and line number from which a function is called?

Debugging: Get filename and line number from which a function is called? Question: I’m currently building quite a complex system in Python, and when I’m debugging I often put simple print statements in several scripts. To keep an overview I often also want to print out the file name and line number where the print …

Total answers: 6