Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created May 16, 2019 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mic92/88a4bdba367af60d9e94adb3f01ac669 to your computer and use it in GitHub Desktop.
Save Mic92/88a4bdba367af60d9e94adb3f01ac669 to your computer and use it in GitHub Desktop.
def main():
a = 1
import pdb; pdb.set_trace()
# (Pdb) list
# 1
# 2 def main():
# 3 a = 1
# 4 -> import pdb; pdb.set_trace()
# 5 #
# 6
# 7 if __name__ == "__main__":
# 8 main()
# (Pdb) print(a)
# 1
# (Pdb) continue
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment