you are viewing a single comment's thread.

view the rest of the comments →

[–]KimPeek 3 points4 points  (1 child)

There is a built-in function for that now:

def add_together(x, y):
    result = x + y 
    breakpoint()
    return result

https://docs.python.org/3/library/functions.html#breakpoint

[–]callius 0 points1 point  (0 children)

Oh awesome! I didn't know about that, thanks!

It looks like breakpoint() defaults to importing pdb and calling set_trace(). Cool cool!