How to use debugger in Colab?

1 week ago 3
ARTICLE AD BOX

when we use vscode we can debug inside function from where we call function. How to do like that in google colab cloud server? Please help me.

def decorator(func): def wrapper(): print("Before calling the function.") func() print("After calling the function.") return wrapper @decorator # Applying the decorator to a function def greet(): print("Hello, World!") ipdb.set_trace() greet()
Read Entire Article