-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebugger.py
More file actions
24 lines (18 loc) · 620 Bytes
/
debugger.py
File metadata and controls
24 lines (18 loc) · 620 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class Debugger:
def __init__(self):
self.breakpoints = set()
def add_breakpoint(self, line_number):
self.breakpoints.add(line_number)
def remove_breakpoint(self, line_number):
self.breakpoints.discard(line_number)
def clear_breakpoints(self):
self.breakpoints.clear()
def step_over(self):
# Stub for stepping over a line in the debugger
pass
def step_into(self):
# Stub for stepping into a function call
pass
def step_out(self):
# Stub for stepping out of the current function
pass