PIO IDE debug options and watch windows are grayed out

Hello,

I am new to PlatformIO. I recently installed PIO plugin from VSc on my Ubuntu Machine. Everything went well while setting up project for an STM32 processor using the HAL libraries and other standard libraries. Even I could flash the BLINKY code onto the board using stlink.

The only issue I faced was when I selected start debug, I cannot see anything in the watch window, stack window, memory window, register window. Also the options for debug such as STEP-IN, STEP OUT, STEP OVER are all grayed out.

How can I enable these options ? Also, how should I enable the watch windows while debugging ?