디버깅) 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
'꿀팁 분석 환경 설정 > 파이썬 개발 팁' 카테고리의 다른 글
Python) 파이썬 프로젝트를 패키지화하기(setup.py) (2) | 2021.07.27 |
---|---|
디버깅) 파이썬 코드 실행 시각화 또는 추적을 하는 3가지 도구 (1) | 2021.05.08 |
초기 Data Science Project 폴더 생성 및 tree strcture 확 (1) | 2021.04.24 |
memory profiler 를 활용해서 메모리 사용량 확인하기 (0) | 2021.03.05 |
[Python] python modules import 하는 3가지 테크닉 (0) | 2021.03.02 |