Answer the question
In order to leave comments, you need to log in
How can I track why the script stops?
All good.
The question is as follows. There is a certain script launched through Tampermonkey. And sometimes the script stops. Sometimes it can work for 12 hours without stopping, sometimes it stops 15 minutes after starting. How can I trace the reason for stopping the script?
Answer the question
In order to leave comments, you need to log in
try {
// ваш основной код
} catch (e) {
// обработка ошибки. вывод в консоль, или запись в лог
}
https://developer.mozilla.org/en/docs/Web/JavaScript...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question