Debug both the frontend (in Chrome) and the backend (Node.js APIs) at the same time

Does anyone know how to debug both the frontend (in Chrome) and the backend (Node.js APIs) of bolt.diy at the same time?

Currently, to set breakpoints in the terminal, I have to run the app in browser debug mode. For the Node.js (API) part, I need to use a different configuration, which makes it challenging to debug both parts together.

Is there a way to set up a single configuration that allows me to put breakpoints in both the frontend and backend and debug them simultaneously?

Any suggestions or sample configurations ?