What worked for me in `VSCode` is to go to `launch.json` and in the active profile that you're using to debug the application, change `preLaunchTask` value from `build` to something else like `building` or any other label. Then inside `tasks.json` file, look for a task with `"label": "build"` then change it to `building` or whatever value you added inside `preLaunchTask` instead.
What worked for me in `VSCode` is to go to `launch.json` and in the active profile that you're using to debug the application, change `preLaunchTask` value from `build` to something else like `building` or any other label. Then inside `tasks.json` file, look for a task with `"label": "build"` then change it to `building` or whatever value you added inside `preLaunchTask` instead.