VSCode WSL Debugging

If you want to use Vscode in windows using WSL for CakePHP and Mysql and want to Debugging links to work add the following to bootstrap.php replacing ‘Ubuntu’ with your distro name. CakePHP5

Debugger::addEditor(‘vscode’, ‘vscode://vscode-remote/wsl+Ubuntu/{file}:{line}’);
Debugger::setEditor(‘vscode’);