Cream together the butter, sugar and light brown sugar.
Add eggs and vanilla, stir.
Add the flour, baking soda and salt, stir.
Add the M&M's and pecans, stir.
Place balls of dough on a cookie sheet and bake at 350° for 10 minutes.