<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Error while trying use python with arg '--scriptdebugger '</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f1b8590175/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f1b8590175/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/f1b8590175/</id><updated>2020-02-27T14:45:00.191000Z</updated><subtitle>Recent posts to Error while trying use python with arg '--scriptdebugger '</subtitle><entry><title>Error while trying use python with arg '--scriptdebugger '</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f1b8590175/?limit=25#65e6" rel="alternate"/><published>2020-02-27T14:45:00.191000Z</published><updated>2020-02-27T14:45:00.191000Z</updated><author><name>zhuyc110</name><uri>https://forge.codesys.com/u/zhuyc110/</uri></author><id>https://forge.codesys.com88eab345294260700f829e84ce2eb45c86080d8f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello support team,&lt;/p&gt;
&lt;p&gt;I am trying to use python script via command line, and I saw this command line argument '--scriptdebugger '.&lt;br/&gt;
I followed the Online Help and created the script, see 'initdebug.py', also setup the PyCharm running 'python remote debug'.&lt;/p&gt;
&lt;p&gt;Here comes the issue: If I start the CODESYS with the following command line:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;CODESYS&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exe&lt;/span&gt; &lt;span class="c1"&gt;--profile="CODESYS V3.5 SP9 Patch 6" --runscript="D:\\Python\\openCDSProj.py" --scriptdebugger="D:\initdebug.py"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;After the CODESYS is started, &lt;strong&gt;it does not execute 'initdebug.py' correctly and gives the following error message&lt;/strong&gt;, but excutes the 'openCDSProj.py' correctly.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         C:\Program Files (x86)\3S CODESYS\CODESYS\ScriptLib\3.5.8.0\mimetools.py:1: DeprecationWarning: in 3.x, rfc822 has been removed in favor of the email package&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         """Various tools used by MIME-reading or MIME-writing programs."""&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         C:\Program Files (x86)\3S CODESYS\CODESYS\ScriptLib\3.5.8.0\httplib.py:1: DeprecationWarning: in 3.x, mimetools has been removed in favor of the email package&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         """HTTP/1.1 client library&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         Error while initializing debugger: IronPython.Runtime.Exceptions.RuntimeException: Unable to proceed (sys._current_frames not available in this Python implementation).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="color: #FF0000;"&gt;*&lt;/span&gt; The last error message is soooo long so I just list the first line of that error message. Error is attached, see 'error.txt'.&lt;/p&gt;
&lt;p&gt;Do you any ideas on that?&lt;br/&gt;
Here's my environment related information:&lt;br/&gt;
Windows 10 Version 1607&lt;br/&gt;
CODESYS V3.5 SP9 Patch 6&lt;br/&gt;
PyCharm 2017.1.4&lt;br/&gt;
Python 3.6&lt;br/&gt;
Thanks very much for your help!&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2842" rel="nofollow"&gt;error.txt &lt;span&gt;&lt;span&gt;[7.89 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2841" rel="nofollow"&gt;initdebug.py &lt;span&gt;&lt;span&gt;[290 Bytes]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>