Got debugging to work.
The original instructions (as far as folder paths are concerned) seem a bit outdated.
After adding the debugging parameter (Settings -> Advanced), I simply chose "Publish -> Desktop -> Windows", and then opened the .exe file from inside Visual Studio. The location of the problematic behaviour is quite clear from the Visual Studio log.
No folder with the name "cpp" or similar was created in the Worskpace folder though.