Jupyter restart the kernel - The kernel appears to have died. It will restart automatically

Hello dears,

My jupyter notebook doesn’t give me any error details on my code just crashing and show only message is that ’ The kernel appears to have died. It will restart automatically’.

Jupyter hides the actual error message and just restart the kernel. The only to debug that is to run the script in a terminal via python scripy.py.

Any suggestions to fix this issue?

Kind regards,
Aiman