For programming languages like python and ruby when errors get thrown I always see 'Traceback' at the start of the error message. What does it mean????
Asked
Active
Viewed 16 times
-1
-
It's literally "tracing through the code" to where the error happened. In the case of python it's mostly showing the call stack at the time of the error. Imagine you get `ZeroDivisionError: division by zero` in python. But then you look at your code, and you see no division at all. But maybe one of the library functions you called used one of the variables you passed as denominator in a division? It won't help you if the error message only showed you the division in that function. You also want to know where you called the function and which parameters you gave it. – Stef May 09 '22 at 20:06
-
@Progman this has nothing with java and java exceptions. – IWannaAskQuestions May 09 '22 at 20:19
-
@IWannaAskQuestions The explanation is the same, in java it is just called "stack trace". – Progman May 09 '22 at 20:26
-
@Progman Alright – IWannaAskQuestions May 09 '22 at 20:28