How to add breadcrumbs

How to add breadcrumbs using category of product in product detail page or normal pages like account page?

There are some breadcrumb twig functions listed.