Ready, when troubled, to embrace learner with affection (6)

I believe the answer is:
dearly
'with affection' is the definition.
(I've seen this in another clue)
'ready when troubled to embrace learner' is the wordplay.
'when troubled' is an anagram indicator.
'to embrace' indicates putting letters inside.
'learner' becomes 'l' (as in a learner driver with L-plates on their car).
'ready' anagrammed gives 'deary'.
'deary' enclosing 'l' is 'DEARLY'.
(Other definitions for dearly that I've seen before include "How I love my wife" , "With affection - at great cost" , "with much suffering" , "Extremely - devotedly - at great cost" , "Very much; at great cost" .)