Started VS as Admin, same answer without "ERROR".
# MI Debugger Properties
{
"serverLaunchTimeout": 5000,
"filterStdout": false,
"filterStderr": true,
"targetArchitecture": "arm",
"stopAtEntry": false,
"externalConsole": false,
"MIMode": "gdb",
"MIDebuggerServerAddress": "localhost:3333",
"cwd": "T:\\TEMP\\VMBuilds\\Sketch2\\esp32_esp32\\Debug",
"MIDebuggerPath": "{runtime.tools.arm-none-eabi-gcc.path}/bin\\arm-none-eabi-gdb.exe",
"MIDebuggerArgs": "-ex \"set remote hardware-watchpoint-limit 2\" -ex \"mon reset halt\" -ex \"flushregs\" -ex \"thb app_main\" -ex \"c\"",
"debugServerPath": "C:\\ProgramData\\vmicro\\tools\\openocd-0.10.0.20200213\\bin/openocd.exe",
"debugServerArgs": "-d2 -l \" -s \"C:\\ProgramData\\vmicro\\tools\\openocd-0.10.0.20200213/scripts/\" -f \"interface/jlink.cfg\"",
"program": "T:/TEMP/VMBuilds/Sketch2/esp32_esp32/Debug/Sketch2.ino.elf",
"logging": {
"moduleLoad": false,
"trace": false,
"engineLogging": false,
"programOutput": false,
"exceptions": false,
"traceResponse": false
},
"visualizerFile": "T:\\TEMP\\VMBuilds\\Sketch2\\esp32_esp32\\Debug\\debugger_tmp.natvis",
"showDisplayString": true
}
Uninstall VM.
Install lastest VM.
Almost started
i can see debug tabs, but stop with error :
"Unable to start debugging. Failed to find thread 1 for break event"
Type "apropos word" to search for commands related to "word".
=cmd-param-changed,param="remote hardware-watchpoint-limit",value="2"
Register cache flushed.
Make hw breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]
=cmd-param-changed,param="pagination",value="off"
0x400e812e in esp_pm_impl_waiti () at mponents/esp32/pm_esp32.c:492
[New Thread 1073463528]
[New Thread 1073447000]
[New Thread 1073467632]
[New Thread 1073455716]
[New Thread 1073445320]
[New Thread 1073446424]
=thread-selected,id="1"
[New Thread 1073464940]
The program '' has exited with code 42 (0x2a).