To debug in Vue, you can use the Vue Devtools browser extension. Once installed, you can open the Devtools panel in your browser and select the Vue tab to inspect your Vue components and data.
To install the Vue Devtools extension, follow the instructions for your browser on the official Vue Devtools website: https://github.com/vuejs/vue-devtools
Once installed, you can open the Devtools panel in your browser and select the Vue tab to inspect your Vue components and data.
For example, to inspect the data in the app Vue instance in the code provided, you can open the Devtools panel and select the app instance under the Vue tab. You can then expand the data property to see the current values of the dates, products, date, and product_id properties.
// Example code to inspect the `app` Vue instance in the Devtools panel
const app = new Vue({
// ...
});
// To inspect the `app` instance in the Devtools panel, add this line of code
window.app = app;