<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Debugg with VS 2019</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c85c747a12/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c85c747a12/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/c85c747a12/</id><updated>2020-02-27T14:59:17.389000Z</updated><subtitle>Recent posts to Debugg with VS 2019</subtitle><entry><title>Debugg with VS 2019</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c85c747a12/?limit=25#1c94" rel="alternate"/><published>2020-02-27T14:59:17.389000Z</published><updated>2020-02-27T14:59:17.389000Z</updated><author><name>jmohre</name><uri>https://forge.codesys.com/u/jmohre/</uri></author><id>https://forge.codesys.come77f921658b3375a116f43a5932ae304673699c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;I am using MS Visual Studio 2019 and try to debug my Python scripts.&lt;/p&gt;
&lt;p&gt;Starting CODEYS.exe from VS2019 IDE and passing python script with arguments works fine, even single stepping is possible.&lt;br/&gt;
What is not working good, is the watch variable part to see the value of a variable.&lt;/p&gt;
&lt;p&gt;If I add the variable either by inserting the name into "Watch1" or by selecting the variable in source code and right-click and select "Add Watch" I only see the following error as value of the variables: "error CS0103: The name 'text2' does not exist in the current context"&lt;/p&gt;
&lt;p&gt;What works is...I can search the variable name in "Locals" and add it Watch. So I will see the value.&lt;br/&gt;
But the name if the variable is something like:&lt;/p&gt;
&lt;p&gt;"new System.Collections.Generic.Mscorlib_CollectionDebugView&amp;lt;ironpython.runtime.objectdebugview&amp;gt;(new IronPython.Runtime.PythonModule.DebugProxy(new IronPython.Runtime.CodeContext.DebugProxy($globalContext).Members).Members).Items&lt;span&gt;[67]&lt;/span&gt;"&amp;lt;/ironpython.runtime.objectdebugview&amp;gt;&lt;/p&gt;
&lt;p&gt;This is very inconvenient.&lt;/p&gt;
&lt;p&gt;Any one here who knows how to show the value of variable by adding the variable via context menu (right-click) or insert the variable name into watch window?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>