Remove pan on medium heat, add the butter , add onions and stir. Then add the ham and fried to crispy. Then add the garlic and stir the garlic turns yellow. Then put the spaghetti into. Add sauce, stir, then turn off the gas, put on a plate and serve.