Xdebug in Visual Studio Code (running on host Mac OS) and Devilbox running on ubuntu guest OS VM

Dear all,
I am running devilbox in an Ubuntu Virtual Machine running on a macOS host, and I am editing the files in Visual Studio Code running in the host.

Is it possible to configure xdebug to work inside VSCode under these circumstances? I have installed the VSCode extension but I am struggling with the configurations:

  • the xdebug.ini file contents, which I believed must be put inside /cfg/php-version-being-used,


  • the local / remote paths (the VSCode launch.json file, needed by the xdebug extension for VSCode.

All help appreciated, thanks!