I cannot step into the imported function from the Python module using the PyCharm debugger
已回答
I have my main Python script that uses the function 'hello_world' from my imported module 'module1.py
However, if I use the PyCharm Debugger I cannot step into the 'hello_world' function.
I am following these steps:
- Execute 'main.py' in debug mode
- Set break point in function 'hello_word'
- Press 'Step Into' from Debug window
- Not working
Do you have any idea what I am doing wrong?
PyCharm: 2023.2.1 (Community Edition) Python: 3.8
请先登录再写评论。
@Jorge Bojorquez Set the breakpoint on the main function which is the one calling the hello_world one. If you do that you will be able to step into the function on module1 as desired.
Miguel Monteiro
I just did:
I can observe that I am navigating the hello_world function (refer to variables a, b, and c in the Debugger). However, my cursor is not visible on the current executing line in module1.py. Is there a solution for this?