DEBUG only one function (or module), RUN rest of the program in Pycharm?
<p>I will try to explain my question on simple example program (my problem is much more complex because my program is much more complex).</p>

<p>Lets suppose i have a program that has 2 lines, making 2 functions:</p>

<pre><code>data = long_one()  #takes 2 hours in DEBUG mode, 15min in RUN mode
short_one(data)    #i want to DEBUG this one
</code></pre>

<p>Lets also say that it is very difficult to prepare the <code>data</code> variable and the only way to obtain it is by running the function long_one(). </p>

<p>Is there a way to RUN <code>long_one()</code> and DEBUG <code>short_one()</code> in Pycharm?
In other words is there a way to perform either:</p>

<ol>
<li>DEBUG with specification that <code>long_one()</code> should be processed in RUN mode   </li>
<li>or RUN with specification that <code>short_one()</code> should be debugged?</li>
</ol>