title: TypeError: runfile() got an unexpected keyword argument 'current_namespace'
body: <p>I got the error message when trying to debug a python script:</p>
  <pre><code>debugfile('C:/Users/Wei-shan/Desktop/pythonScripts/simple pendulum.py', wdir='C:/Users/Wei-shan/Desktop/pythonScripts', current_namespace=True)
  Traceback (most recent call last):
  
    File &quot;C:\Users\Wei-shan\AppData\Local\Temp/ipykernel_19384/837447315.py&quot;, line 1, in &lt;module&gt;
      debugfile('C:/Users/Wei-shan/Desktop/pythonScripts/simple pendulum.py', wdir='C:/Users/Wei-shan/Desktop/pythonScripts', current_namespace=True)
  
    File &quot;D:\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py&quot;, line 589, in debugfile
      enter_debugger(
  
    File &quot;D:\anaconda3\lib\site-packages\spyder_kernels\customize\spyderpdb.py&quot;, line 773, in enter_debugger
      debugger.run(code)
  
    File &quot;D:\anaconda3\lib\site-packages\spyder_kernels\customize\spyderpdb.py&quot;, line 716, in run
      super(SpyderPdb, self).run(cmd, globals, locals)
  
    File &quot;D:\anaconda3\lib\bdb.py&quot;, line 580, in run
      exec(cmd, globals, locals)
  
    File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
  
  TypeError: runfile() got an unexpected keyword argument 'current_namespace'
  
  </code></pre>
  <p>Any suggestions?
  Thank you very much</p>