melt butter in a large nonstick skillet over medium heat. add sugar to pan; cook 1 minute or until sugar dissolves. add onion and garlic to pan. cover and cook 30 minutes or until onions are very tender, stirring occasionally.