Noob question (debugging)

I have a React.js program in development. I normally run “python api.py” to launch the backend and “npm start” to launch the frontend. Is it possible to do that within the API, and have any console errors from either of them feed back into the API?