How to know the file location of a pprint and print statement?

Hi

When debugging, sometimes i want to know which file and line is the pprint / print log come from.

Is there anyway to know it from the log?

Thank you

You can make your function for print, or replace global print function