is it possible to improve traceback messages ?

S

Stef Mientki

hello,

Most of time I get an error message, it is sufficient to solve to problem.
Sometimes it's not clear to me what the problem is
like this one:

N = int (log10(self.Value)) + 1
TypeError: int() argument must be a string or a number

In order to solve it, in general I put some print statements,
before the line with the problem,
printing values and types of all variables.

I think it would be much more convenient,
if the traceback or error exception ( don't know how it works exactly),
would print the type and value of all variables and constants used in the last line.

Can this be done (in a easy way).

thanks,
Stef Mientki
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top