I have seen many answers to the converse question (which seems to be difficult in general), but I would like to ask the following:
Let $T: L^2 \rightarrow L^2$ be a trace-class operator that is also an integral operator
$$Tf = \int K(\cdot,y)f(y)dy.$$
Since $T$ is trace-class $\operatorname{tr}(T)$ exists. Now, I would like to ask: Under what conditions is this trace given by
$$\operatorname{tr}(T)=\int K(x,x) dx.$$
In a way, continuity would presumably be a sufficient requirement to make sense out of this expression, but I could imagine that much more is known about this.