Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About debug the program #281

Open
TTYee opened this issue Apr 3, 2024 · 1 comment
Open

About debug the program #281

TTYee opened this issue Apr 3, 2024 · 1 comment

Comments

@TTYee
Copy link

TTYee commented Apr 3, 2024

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
Copy link
Collaborator

AdrianKs commented Apr 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants