What does 食べたいものを好きなだけ食べる mean?


> 食べたいものを好きなだけ食べる

seems to be weird for me because in my understanding this sentence mean

> I just eat the food I like from the food that I want to eat

The complete sentence is as follows.

> 糖尿病の人は美味しい食品があったとしても、制限があるため **食べたいものを好きなだけ食べることができない** 。

Could you explain how this sentence must be parsed?




食べたいもの = Things that I want to eat

好きなだけ食べる = eat as much as I want(like)

You might already know the expression 「好きにする」 which mean to do as one please.  
This follows the same idea.

It means to eat the things that you want as much as you like.

This expression is usually used to express(complain) about how some people can
eat all they want and not get fat while some are not that lucky.




食べたいもの = Things that I want to eat

好きなだけ食べる = eat as much as I want(like)

You might already know the expression 「好きにする」 which mean to do as one please.  
This follows the same idea.

It means to eat the things that you want as much as you like.

This expression is usually used to express(complain) about how some people can
eat all they want and not get fat while some are not that lucky.

