Melt the butter in a large skillet over medium heat. Add the potatoes and onions. Cook until the onions are golden brown and the potatoes are tender, 15 to 20 minutes. Stir in the blue cheese and bacon, continue to cook until the blue cheese begins to melt. Season with salt and pepper.