Debugging using visual studio code
- Breakpoint: This is where the code execution stops and we get control
- Step Over: This instructs the debugger to execute the current line
- Continue: We give control back to debugger
- Sections:
- Variables
- Watch
- Call Stack
References
- Gist link for individual code debugging practice
-
To debug
- copy the python code in a file (with .py extension) and preferably in a new folder
debugging-practice - Start Debugging
- copy the python code in a file (with .py extension) and preferably in a new folder
- Findout the logical mistake in fibbonci problem
- Solution is
a = 1
b = 2
sum = 2
while a + b < 100:
c = a + b
if c % 2 == 0:
sum = sum + c
a = b
b = c
print(sum)
