Not able to Debug Php files in Nextcloud code!

Nextcloud version : Stable 18
Operating system and version: Ubuntu 18.04 LTS subsystem in Windows 10
Apache : Apache 2.4.29
PHP version : 7.2

The issue you are facing: I am not able to set up debugging environment in the Nextcloud server code. The JS files can be directly debugged in the Development Tools of the browser, but my main concern is Debugging the Php files in the code. I tried setting up Xampp and also tried using Xdebug but the code did not stop on the breakpoints I applied. I am currently trying to do this in Visual Studio Code, as I edited rest of the code in it.

Is this the first time you’ve seen this error? (Y/N): N

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'debug' => true,
  'instanceid' =>  '**********',
  'passwordsalt' =>  '**********',
  'secret' =>  '**********',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'http://localhost:8082',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '18.0.4.1',
  'overwrite.cli.url' =>  '**********',
  'dbname' =>  '**********',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' =>  '**********',
  'dbpassword' =>  '**********',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' =>  '**********',
  'mail_domain' =>  '**********',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' =>  '**********',
  'mail_smtpport' =>  '**********',
  'mail_smtpname' =>  '**********',
  'mail_smtppassword' => '**********',
);