This is where many people fail, if we deem failure to be “giving up.”
This is part of the discipline, the belief in yourself and the deeper desire to accomplish your goal.
We absolutely need the tools and techniques you’re describing when you feel like you’re failing or not making progress.
And a large dose of stubborn determination helps! :-)