kge
kge copied to clipboard
About debug the program
I'm not very familiar with this way of running programs through yaml configuration files, is there any convenient way to debug programs? I would appreciate that if someone has a good method to share with me, thank u. (I use VScode editor)
Hi,
instead of calling the kge module from console you can also run the cli.py
file inside the IDE of your choice.
You would call kge/cli.py
from the root of the project.
You can then provide the configuration as script parameters.
Example parameters could be: start examples/toy-complex-train.yaml --job.device cpu
This should allow you to use the integrated debugger of your IDE, as you just call a python file as you might be used to.