html = 'i am html' def a_func(): raise ValueError(html) if __name__ == '__main__': a_func() # breakpoint here ...