kge icon indicating copy to clipboard operation
kge copied to clipboard

About debug the program

Open TTYee opened this issue 10 months ago • 1 comments

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)

TTYee avatar Apr 03 '24 13:04 TTYee

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.

AdrianKs avatar Apr 03 '24 14:04 AdrianKs