Sublime Text Editor 3 doesn't show traceback when running Python code

0

Yesterday I installed ST3 and installed some plugins, but I noticed that if Python has a syntax error then it shows an error. But when a statement has a non-syntax error, then it shows nothing. Like this code doesn't throw any traceback.

Screenshot
(Click image to enlarge)

But when I run the same code from the terminal then I do get a traceback:

Screenshot

How can I show the traceback in my Sublime Text Editor? I am pretty sure that the problem is not occurring because of a plugin.

MD Sijad Faisal

Posted 2016-05-06T08:44:25.627

Reputation: 31

Answers

0

Sublime Text cannot handle input through it's build system. Therefore, your input just blocks and the code below it never executes, so you never hit the error that would cause a traceback. The easiest workaround is to execute your code via a plugin like SublimeREPL instead of the build-system.

Keith Hall

Posted 2016-05-06T08:44:25.627

Reputation: 331

It didn't wrok...! – MD Sijad Faisal – 2016-05-06T11:04:26.913