Meanwhile, in a separate saucepan over medium heat, add the chopped pecans. Cook while stirring occasionally until the nuts are golden and very aromatic.
Return the pan to medium heat and add the butter, brown sugar, and chopped onions. Cook for about 10 minutes, or until the onions are lightly caramelized.