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:

  1. Execute 'main.py' in debug mode
  2. Set break point in function 'hello_word'
  3. Press 'Step Into' from Debug window
  4. 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?