mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 16:15:55 +03:00
[GH-ISSUE #491] How should I debug #204
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tysaya123 on GitHub (Jun 6, 2020).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/491
So I was hoping to start messing around with the code here. However, I am unsure what the best way to debug any changes I make is. Just wanted to ask if there is an easy way to debug the application?
@Rigellute commented on GitHub (Jun 29, 2020):
So sorry for late response @tysaya123.
I pretty much entirely rely on the power of the Rust compiler for debugging - I let the types do most of the work.
Is there something in particular that you need help debugging?
@Utagai commented on GitHub (Oct 10, 2020):
I'm a print-statement kind of guy. When I worked on #604, I used a
eprintln!()calls and just ransptwith itsstderrredirected to a "log file":and in a separate terminal:
This let me use the UI while getting clean console output for when I needed to figure things out. This was mostly useful when I first started messing with the code and needed to confirm what the codepaths in the app were like. Prints help me confirm the flow.
I agree with @Rigellute that once I understood the code paths, I didn't really need to print much else to reason about and implement changes.