How to debug exception triggered by unit test in VSCode

Suppose the following minimal example, that triggers an exception in its execution, due to the return x + 1 line:

using Test

function f(x)
    return x + 1
end

@test f([0]) == [1]

I want to launch a debugging session on this via VSCode.

However, if I try to launch one with VSCode’s @run I get the following unhelpful call stack:

Instead I want to get the full call stack, including inside the call to f.

It appears that pressing Step-Into (F11) and then Continue (F5) when at the original call stack of the above screenshot brings us to the line of f that originally creates the exception.

For this to work “BREAKPOINTS → All Exceptions” has to be enabled.

Is this expected behaviour?