Debug pico with pico rp2040

I using the following PICO Configuration

https://community.platformio.org/uploads/default/original/3X/4/6/46c013bfa5b8e5eaeccb4f48d68851ab5046c891.png

Platfomio.ini:

[env:rpipico]
platform = raspberrypi
board = pico
framework = arduino
lib_deps =
  adafruit/Adafruit GFX Library@^1.11.11
  adafruit/Adafruit ILI9341@^1.6.1
  https://github.com/PaulStoffregen/XPT2046_Touchscreen.git
  adafruit/Adafruit BusIO@^1.16.2

[env:platformio-debug]
platform = raspberrypi
board = pico
framework = arduino
lib_deps =
  adafruit/Adafruit GFX Library@^1.11.11
  adafruit/Adafruit ILI9341@^1.6.1
  https://github.com/PaulStoffregen/XPT2046_Touchscreen.git
  adafruit/Adafruit BusIO@^1.16.2
debug_tool = cmsis-dap
upload_protocol = cmsis-dap
debug_speed = 1000
build_type = debug
;monitorport = COM7   ; A CDC-ACM UART Interface (Interface1)
monitor_speed = 115200
build_flags = -DDEBUG_MODE

It is working fine in release mode, but in debug mode what was working earlier in an other platformio configuration, after translation I got the following:

undefinedC:\Users\Peter\.platformio\packages\toolchain-gccarmnoneeabi\bin\arm-none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory.

Reading symbols from e:\Raspberry-pi\Raspberry pico\software\C++\PLATFORMIO\Centirozo\.pio\build\platformio-debug\firmware.elf...
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = cmsis-dap
PlatformIO: Initializing remote target...
Open On-Chip Debugger 0.11.0+dev-gec0240e6a-dirty (2021-03-09-09:44)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
2
Info : Hardware thread awareness created
Info : RP2040 Flash Bank Command
adapter speed: 1000 kHz

Info : tcl server disabled
Info : telnet server disabled
Warn : could not read product string for device 0x2e8a:0x000c: Entity not found
**Error: unable to find a matching CMSIS-DAP device**

**.pioinit:13: Error in sourced command file:**
**Remote communication error.  Target disconnected.: Success.**

And there is no communication in the SWD lines checked by oscilloscope.

What is the reason of this error?

If I add the following into platformio.ini it started to work the debug session:

debug_extra_cmds =
  set remotetimeout 7