I was reading a book and it used the phrase
喉からてが出るほど
but I can't remember what followed. It feels like I would use this in the same way I would use the English phrase "so bad that it hurts" as in "I want to do something so bad that it hurts". Is my understanding correct? In what kind of situations would you use a phrase like this?