Cook the beans until they are firm to the bite for 15-20 minutes. Leave out the butter, toast the finely chopped onion and pressed garlic cloves until golden, add breadcrumbs and toast briefly. Then add the cooked beans and season with salt and pepper.