<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[VS Code -&gt; Cinema 4D Connector -&gt; Agent]]></title><description><![CDATA[<p dir="auto">Dear Developers,</p>
<p dir="auto">is it possible to provide Agents access to the Connector Debug output <strong>inside</strong> VScode ?<br />
running at <code>ws://ip:port</code></p>
<p dir="auto"><em>inside</em> means not special tools or ports ... I have limited access to the machine.<br />
thank you</p>
]]></description><link>http://developers.maxon.net/forum/topic/16459/vs-code-cinema-4d-connector-agent</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 04:13:25 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/16459.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Nov 2026 12:57:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to VS Code -&gt; Cinema 4D Connector -&gt; Agent on Fri, 13 Nov 2026 10:53:25 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mogh">@<bdi>mogh</bdi></a>,</p>
<p dir="auto">your question is a bit ambiguous. What is <em>'Connector Debug output'</em> for you and what is exactly <em>'inside VSCode'</em> for you, especially under the condition of  <em>'limited access to the machine'</em>?</p>
<p dir="auto">The connection between VSCode and Cinema 4D to exchange scripts and console output of Cinema 4D is proprietary. It is an websocket connection that runs on the port you define in Cinema (by default 7788), e.g., <code>127.0.0.1:7788</code>. The payload is JSON but I would rather not publicly document its details, primarily because I do not want to give the impression that there is any guarantee that the protocol is meant to be a stable API third parties can hook into. But since this is a VSCode extension, you can of course just look at the source to understand the details, or ask an agent to do it for you.</p>
<p dir="auto">When you mean with <em>debug output</em> the actual debugger, then we are using the Microsoft library <code>debugpy</code>. We use port 5678 but you could also use any other port because your app is the server, not the consumer. I.e., the debug IP could be <code>127.0.0.1:5678</code>. The old (2026.3) docs contained a <a href="https://developers.maxon.net/docs/py/2026_3_0/manuals/manual_py_vscode_integration.html#debugging-plugins" target="_blank" rel="noopener noreferrer nofollow ugc">section</a> that showed how to manually attach from your code to a debugpy client, e.g. VS Code. But I have removed this section in the <a href="https://developers.maxon.net/docs/py/2027_0_0/manuals/manual_debugging.html" target="_blank" rel="noopener noreferrer nofollow ugc">2027 Debugging Manual</a> because the debugger is currently not properly working under MacOS and I did not find the time to fix that for 202.0.0 (but I will fix it within 2027.X.X).</p>
<p dir="auto">Note that the debugger connection is made from your code; your code is the server, VSCode is the client. <code>debugpy</code> is a proprietary Microsoft library and the only meaningful enterprise debugger for Python at the moment. There is the builtin <code>pdb</code> library which you can use but it IMHO has its limits. There are also some smaller third party alternatives, but they are all inconsequential and I do not know if they work with Cinema 4D. <code>debugpy</code> is using the open <a href="https://microsoft.github.io/debug-adapter-protocol/" target="_blank" rel="noopener noreferrer nofollow ugc">DAP</a> protocol, so it is not impossible to create your own consumer, but it is probably also not trivial (I am mentioning this because your message somewhat implies that you want to sidestep the VS Code debugger interface).</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/77399</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/77399</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Fri, 13 Nov 2026 10:53:25 GMT</pubDate></item></channel></rss>