Quoted from this The Gui debug hang is solved by added the following to the launch.json file:
"setupCommands": [ { "description": "Disable target async", "text": "set target-async off", "ignoreFailures": true }