The Sobolev embedding theorem implies that every function of class $W^{k,p}$ on a reasonable $n$-dimensional domain is continuous if $kp > n$. Cases with $kp=n$ are known as "borderline" cases. In my question I'm going to focus on the case $p=2$ for functions on either ${\mathbb R}^n$ or ${\mathbb T}^n$, so that the Sobolev spaces $H^k = W^{k,2}$ have a nice description in terms of Fourier transforms or series, but answers concerning more general Sobolev spaces are also welcome.
It seems to be tricky to find concrete examples of discontinuous functions that are Sobolev borderline cases. Some searching turned up an example in $H^1({\mathbb R}^2)$, but I have been unable to find a "simple" example in what I intuitively expect to be the easiest case, namely $H^{1/2}(S^1)$, and I was surprised that none of the textbooks I could think to search in give one. My first impulse was to try classic discontinuous functions like the square wave and sawtooth whose Fourier series are easy to compute: these just miss the mark, as they turn out to be in $H^s(S^1)$ for all $s < 1/2$ but not for $s=1/2$. The one thing I have tried that worked was writing down an explicit Fourier series like $$ f(x) := \sum_{k=2}^\infty \frac{e^{2\pi i k x}}{k \ln k}, \qquad \text{ (here $x \in S^1 := {\mathbb R} / {\mathbb Z}$)} $$ which one can easily check is in $H^{1/2}(S^1)$, and one can then use summation by parts to estimate $\sum_{k=N}^\infty \frac{e^{2\pi i kx}}{k \ln k}$ for large $N$ and small $|x|$ and thus prove $\lim_{x \to 0} f(x) = \infty$. One can do something similar with a Fourier transform and integration by parts to find a function in $H^{1/2}({\mathbb R})$ that is continuous everywhere except at $x=0$, where it blows up. But this type of construction is a lot trickier than what I was hoping for; expressing a function as a conditionally convergent series or improper integral does not give me the feeling that I can get my hands on it.
So, first question: does anyone know a simpler example of something that is discontinuous and belongs to $H^{1/2}(S^1)$ or $H^{1/2}({\mathbb R})$? Or other interesting examples of Sobolev borderline functions that can be understood without having to search the exercises in Baby Rudin for hints?
Followup question, admittedly a little vague: if you don't know more concrete examples, is there any deep reason why they don't exist, i.e. why every function I can think to write down in a reasonable way turns out to fall short of the borderline case?