I'm trying to learn about how the Python interpreter works via debugging it in interactive mode.
I've managed to compile cpython with Visual Studio 2019 on windows 10, using the PCbuild\pcbuild.sln solution.
I tried debug from python.c as the file is the only one in "Source Files" panel.
and then I tracked it to main.c
I tried to put breakpoints there, pressed F5, VS activated the breakpoints during launching the interpreter.
However, when I entered something in the interpreter being debugged, VS didn't activate any breakpoint.
Where should I put the breakpoint that VS debugger will activate when I enter something in Python interpreter?
PS:
I also tried put another line there
and got same situation, that is, debugger hits the breakpoint only once when VS launches the console. After that, debugger never hits the breakpoint again.










