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

Send logs of both JS game code and spade over serial for debugging purposes #1763

Open
polypixeldev opened this issue Dec 12, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@polypixeldev
Copy link
Collaborator

It would be helpful for game developers as well as spade developers if logs were sent over the serial connection to make it easier to debug problems that occur on the Sprig, such as parity problems or new firmware code. A serial monitor could be added to the Sprig editor to watch logs from your sprig game (although that is not part of spade).

@grymmy grymmy added the enhancement New feature or request label Dec 14, 2023
@grymmy
Copy link
Contributor

grymmy commented Dec 14, 2023

Hey @leomcelroy whaddya think about this one?

@polypixeldev
Copy link
Collaborator Author

It appears that both JS logs and spade logs are already sent over the USB! I was able to get them to show up in my terminal by running picocom -b 115200 /dev/ttyACM0 with the Sprig connected.
One thing is that we might want some clearer logs from spade to differentiate between JS and engine debug logs.

@ajs256
Copy link
Member

ajs256 commented Dec 20, 2023

Just prefixing the Spade and game logs with spade > and jerry > , respectively could work

@leomcelroy
Copy link
Collaborator

I support this suggestion on differentiating logs.

@leomcelroy leomcelroy removed their assignment Jan 3, 2024
@JosiasAurel JosiasAurel transferred this issue from hackclub/spade Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants