You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
348 B
20 lines
348 B
# example.py |
|
import debugpy |
|
|
|
# Start the debug server |
|
debugpy.listen(("localhost", 64321)) |
|
print("Waiting for debugger to attach...") |
|
debugpy.wait_for_client() |
|
print("Attached!!!") |
|
|
|
def add(a, b): |
|
return a + b |
|
|
|
def main(): |
|
x = 10 |
|
y = 20 |
|
result = add(x, y) |
|
print(f"The result is {result}") |
|
|
|
if __name__ == "__main__": |
|
main()
|
|
|