Unable to run Dash server in Spyder

Hi All,

if name==“main”:
app.run_server(debug=True)

when I am running my dashboard with help of the Debug=True. It’s showing the following error.
“An exception has occurred, use %tb to see the full traceback.”

To resolve this I am using
if name==“main”:
app.run_server(debug=False) and I am able to see my dashboard running in my local. But whenever I do some code changes the changes are not reflecting back in the server. So I am killing my python tasks using task manager and restarting my server.

Is there any way to avoid this and see my code changes effectively. Please help me.