Passage
Trouble and anguish have taken hold on me; [Yet] thy commandments are my delight.
Trouble and anguish have taken hold on me; [Yet] thy commandments are my delight.
Psalms 119:141 I am small and despised; [Yet] do I not forget thy precepts.
Psalms 119:142 Thy righteousness is an everlasting righteousness, And thy law is truth.
Psalms 119:143 Trouble and anguish have taken hold on me; [Yet] thy commandments are my delight.
Psalms 119:144 Thy testimonies are righteous for ever: Give me understanding, and I shall live. QOPH.
Psalms 119:145 I have called with my whole heart; answer me, O Jehovah: I will keep thy statutes.
The verse centers on "light", "trouble", "anguish", "taken", "hold", "commandments", and "delight". It is saying that the verse draws attention to "light" and "trouble", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 142's "Thy righteousness is an everlasting righteousness And..." into verse 144's "Thy testimonies are righteous for ever Give...", so "light" and "trouble" belong inside that flow. In Psalms context, the local focus is worship, trust, the LORD's kingship, and covenant mercy.
A plain takeaway is to answer the verse's own emphasis on "light" and "trouble" with trust shaped by these words, not by a vague optimism outside the passage.