디버깅) CyberBrain

2021. 5. 8. 16:10꿀팁 분석 환경 설정/파이썬 개발 팁

728x90

 

 

 

installation

1. Installing the library via pip command:

pip install cyberbrain

2. Installing the VSCode extension: Currently, the library only supports VSCode IDE and GitPod. I think most of the developers use VSCode (if not, switch as soon as possible!), and installing the extension is not a hard task. Search for this extension and install it:

 

 

from cyberbrain import trace

@trace 
def add(a,b) :
    return a+b

# sum(1,5)


@trace
def subtract(a,b):
    return a-b

# subtract(1,5)

@trace
def calculate(a,b) :
    a = add(a,b)
    b = subtract(a,b)
    return a,b

calculate(10,1)

 

 

흐음 한 함수에서만 잘 작동하는 것 같고, argument나 쭉 flow를 볼 때는 유용해보이는데, 뭔가 아쉬운?..

 


https://link.medium.com/9rSJUDsm5fb

 

CyberBrain: Debugging Python Programs Like A Pro

Python debugging redefined

towardsdatascience.com


디버깅툴 살펴보기

728x90