uma-pi1 / kge

LibKGE - A knowledge graph embedding library for reproducible research
MIT License
765 stars 124 forks source link

About debug the program #281

Open TTYee opened 5 months ago

TTYee commented 5 months ago

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)

AdrianKs commented 5 months ago

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.