Can't upload and debug the esp32dev module

i’m trying to upload and debug the esp32 code, it builds the code but gives error while uploading.
please help, thank you.

Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway…
Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway…
Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Couldn’t halt target before SoC reset
embedded:startup.tcl:449: Error: ** Unable to reset target **
in procedure ‘program_esp’
in procedure ‘program_error’ called at file “C:/Users/ps759/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp_common.cfg”, line 93
at file “embedded:startup.tcl”, line 449
*** [upload] Error 1
===================================== [FAILED] Took 1.67 seconds =====================================

are you really uploading via JTAG ?

i just started using Platformio and JTAG, so really don’t know much.
please help how will i know this.

some how i managed to get it worked.
thank you everyone for not helping me.