Open VSCode to the folder FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC.
Open .vscode/launch.json, and ensure the miDebuggerPath variable is set to the path where arm-none-eabi-gdb is on your machine.
Open main.c, and set mainCREATE_SIMPLE_BLINKY_DEMO_ONLY to 1 to generate just the simply blinky demo.
On the VSCode left side panel, select the “Run and Debug” button. Then select “Launch QEMU RTOSDemo” from the dropdown on the top right and press the play button. This will build, run, and attach a debugger to the demo program.