I'm trying to trace the code for DeepSpeech to learn about its inner working and it's using Tensorflow. And for that I'm using Pycharm.
After some hassle, I managed to setup the environment so now I can run its ./bin/run-ldc93s1.sh
script successfully. Then I configured the Pycharm to do the same as the mentioned script. At this point, I can run that configuration (within Pycharm) and it will run exactly just like the script. I can see the logs in the console window and it finishes all just fine. But when I execute the same configuration in debug mode, it pauses at the first epoch:
...
I STARTING Optimization
I Training epoch 0...
And to be clear, the process does not exit. It just stays there without any progress as if the execution is waiting on a break point while there's no break point. Eventually, I have to stop it forcefully.
My question is, what could be a reason for some project to be able to run but not debugged? And to be even more clear, I know that TF creates a graph which is not that easy to debug. That's not my question. I just want to know why the same code that can be run, cannot be debugged?