0

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?

3
  • I think it's not possible Commented Nov 4 at 19:20
  • unless you use print() which prints the variables in the function Commented Nov 4 at 19:22
  • fwiw I wrote a microlibrary that might help you - Eulogy. In terms killing the code, just import sys: sys.exit() to kill the script Commented Nov 4 at 19:28

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.