sublime text 에서 breakpoint 지정
python breakpoints plugin
sublime text 에서 breakpoints 를 쉽게 넣어보자. 아래 plugin 을 사용하면 된다.
그러면 "ctrl + shift + b" 를 통해 breakpoint statement 가 들어간다.
- ctrl + shift + b : import pdb ; pdb.set_trace()
Settings변경
- Preferences > Package Settings > Python Breakpoints
만약 pdb 가 아닌 ipdb 를 사용하고 싶다면 아래처럼 변경해 주면 된다.
{
// preferred debugger (pdb, ipdb, pudb,..) - must support set_trace() call
"debugger": "ipdb",
// "auto" (read from global settings), or a positive integer
"tab_size": "auto",
// name of scope for color highlighting; replace with "mark" if "invalid" is annoying
"highlight": "invalid",
// icon name for the gutter, one of: "" (disabled), "dot", "circle", "bookmark" or "cross"
"gutter_icon": "circle",
// auto-save the file on breakpoint toggle
"save_on_toggle": false
}

댓글 없음:
댓글 쓰기