Heat the butter and olive oil in a large skillet over medium-high heat. Add the onions and cook, stirring occasionally, until golden brown and caramelized, about 15 minutes.
Stir in the sugar and salt. Cook for an additional 5 minutes.
Transfer the mixture to a food processor and pulse until smooth. Serve with crackers or chips.