Debugging in Python
15:40 04 Nov 2025

I have a main function which calls many other functions. Each function is in a file separated from the main function.

lets say the following

main.py
variable1 = 123
variable2 = 1435
from utilsfolder.function_one import function_one
result_one = function_one (variable1, variable2)
from anotherfolder.function_two import function_two
result_two = function_two(variable1,result)
from utilsfolder.function_three import function_three
result_three = function_three(result,variable1, variable2)
print (f"The final result is {result_three}")

So I want to run the code up to function_two and then depure function_three since I notice that function_three on line 50 is having some issue that I want to understand.

My objective is to run the code up to result_two then stop! Run function three as a new depuration and top at line 49... understand the problem, fix it and then exit that secondary depuration... keep running the first depuration

how can I do this secundary depuration?

Is this even possible with SPYDER or VSCODE?

Best regards my friends :D

python spyder vscode-debugger