Is there a debugger tool that shows the value of a variable?
<p>I am looking for a debugger tool that helps me find what causes the error in my program?</p>

<p>Usually to debug I use the <strong>print(variable) function</strong> to see what the value of a certain variable is at a given time. Hence I can see where and when something goes wrong.
However, this takes way too long if the program is a little longer.</p>

<p>I wish there was tool which would show the value of a variable when I move the mouse to that variable. Instead, I always have to go into the code and use the print function in multiple place and run the program multiple times.</p>

<p>Example:</p>

<pre><code>y = "otito"
y = list(y)
del y[2] ###show me the new value of y when mouse over y = "otto"###
</code></pre>

<p>Is there something like this out there?</p>

<p>IF NOT</p>

<p>How do you guys go about to check the value of variables at certain times?</p>

<p>Yes, Pycharm has built-in debugging capabilities. First, set the breakpoint at the point (line) you would like to see the variable. In your case that would have to be after the <code>del y[2]</code> line, as this is the point that the <code>del</code> would have effect:</p>

<p>y = "otito"
y = list(y)
del y[2] 
y             # &lt;- set the Breakpoint at this line, by just clicking right of the number line in Pycharm</p>

<p>Then, run your program with <code>Run -&gt; Debug</code> and it will stop at the breakpoint and show you all of the variables, including <code>y</code>:</p>

<p><a href="http://i.stack.imgur.com/u5wd0.png" rel="nofollow"><img src="http://i.stack.imgur.com/u5wd0.png" alt="enter image description here"></a></p>

python debugging pycharm