Check Node.js Debugging Settings
Ensure you have the correct debugging configuration in your project settings: Open your project in Visual Studio. Go to Project Properties > Debug.
Verify that the Node.js executable path is correctly set. It should point to the Node.js runtime installed on your system. Ensure that the "Enable Node.js debugging" option is selected.