SAML2.0 is an open standard used for transferring authentication and authorization data between Service Providers and Identity Providers.
The most common usage is web based SSO, where SAML is what enabled a user to login to an application with credentials from another system, without having the need to have the two systems directly connect to each other during authentication.
SAML specifies three key roles:
The Identity Provider (IdP)
The party which provides and maintains the identity of the users. This can be a directory service like ADFS or a custom database solution.
The Service Provider (SP)
The Service Provider is the actual service which the user tries to login to. This can be a website, an application or any service a user ought to be required to login to.
The principal / the user
The actual user initiating the request, or trying to access a resource from the Service Provider (SP).
The main SAML use case is Web Based SSO, where the SAML process is conducted by a set of redirects within the users' browser, where the user acts as the token carrier between the IdP and SP.
There are two flows for Web Based SSO using SAML:
Identity Provider (IdP) Initiated
The user logs into the IdP and is then forwarded to the SP of choice. E.g. a user logs into a corporate intranet and is presented with all available applications.
Service Provider (SP) Initiated
The user tries to login to an application, but is forwarded to the IdP to perform the actual authentication. E.g. a user tries to login to a remote SaaS application, but is forwarded to a corporate IdP so the user can login with their corporate credentials into the remote application.
The SP initiated flow is visualized greatly by the workflow below:
Source: Wikipedia
With all the requests and assertions going back and forth, it can be cumbersome to debug issues with your SAML claims and assertions.
As within SAML a core principle is not needing a direct connection between the IdP and the SP, the user's browser acts as a message carrier between the two. Because of this all communication - albeit encrypted - goes through your own browser.
Using various debug tools you can see the exact communication and requests being made, and forwarded between IdP and SP.
To get you started, here are a couple of tools for various browsers that should get you started:
Chrome
Firefox
Using for example SAML Tracer you can see decoded SAML assertions and requests in real time while testing and debugging