How to change the thread focus using the Visual Studio Code extension

Whenever I’m debugging using VS Code, if I want to be a specific thread state, I usually do something like:

        if (threadId == 40) {
            printf("hi");
        }

Is there a proper way to focus on a specific thread when executing the debugger?

In the lower right corner of VS Code, you can see the block and thread coordinates. To alter them, you can click on the coordinates, and then adjust them using the syntax:

block (x,y,z) thread (a,b,c)

Here is a screen shot showing where to click, and how to enter new coordinates:

1 Like

Thank you for the directions, that’s exactly what I was looking for!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.