<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to PluginDebugging</title><link>https://sourceforge.net/p/charon-suite/wiki/PluginDebugging/</link><description>Recent changes to PluginDebugging</description><atom:link href="https://sourceforge.net/p/charon-suite/wiki/PluginDebugging/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 23 Jan 2014 14:46:31 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/charon-suite/wiki/PluginDebugging/feed" rel="self" type="application/rss+xml"/><item><title>PluginDebugging modified by Jens-Malte Gottfried</title><link>https://sourceforge.net/p/charon-suite/wiki/PluginDebugging/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="how-to-debug-charon-plugins"&gt;How to debug charon plugins&lt;/h1&gt;
&lt;p&gt;Here you find useful hints of plugin debugging techniques.&lt;/p&gt;
&lt;p&gt;Assume, you have created some new plugins and have some (e.g. CMake-) project to build them.&lt;/p&gt;
&lt;p&gt;'''First of all''' please make sure, that the DLLs you want to debug only exist '''once''' on your hard drive so that you cannot accidentially debug an older version!&lt;br /&gt;
(For example, the charon-core.dll is located in the build-directory of tuchulcha and in the installed version of tuchulcha. Depending on how you debug the plugin, you have to take care of that.)&lt;/p&gt;
&lt;h2 id="visual-studio"&gt;Visual Studio&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;build your plugins in debug mode&lt;/li&gt;
&lt;li&gt;do not copy or install them to the global plugin path, leave them&lt;br /&gt;
   where they have been just created&lt;/li&gt;
&lt;li&gt;set Tuchulcha's private plugin path (in Tuchulchas option dialog)&lt;br /&gt;
   to the directory where your new plugin dlls are located&lt;/li&gt;
&lt;li&gt;run Tuchulcha and run "update plugins" from the File-Menu,&lt;br /&gt;
   your new plugin should show up in the selector widget, if not,&lt;br /&gt;
   there are perhaps some .dlls missing, you should copy them from the global&lt;br /&gt;
   plugin path to your private one.&lt;br /&gt;
   The &lt;span&gt;[http://www.dependencywalker.com/ Dependency Walker]&lt;/span&gt; may help&lt;br /&gt;
   to locate missing dlls.&lt;br /&gt;
   In the update summary which shows up after running "update plugins", tuchulcha&lt;br /&gt;
   displays the location of the plugin files beeing loaded. Double check if the path&lt;br /&gt;
   of the module to be debugged is that in your build directory.&lt;/li&gt;
&lt;li&gt;attatch the MSVC debugger to the running Tuchulcha session&lt;br /&gt;
   (using remote debugging). You need the MSVC Professional Edition&lt;br /&gt;
   to do this, the Express Edition does not offer this kind of debugging.&lt;/li&gt;
&lt;li&gt;set breakpoints in your plugin code&lt;/li&gt;
&lt;li&gt;set up some workflow in Tuchulcha to test your plugin&lt;/li&gt;
&lt;li&gt;run "execute workflow" in Tuchulcha&lt;/li&gt;
&lt;li&gt;the Plugin execution should stop now at your breakpoints,&lt;br /&gt;
   continue debugging as ususal&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jens-Malte Gottfried</dc:creator><pubDate>Thu, 23 Jan 2014 14:46:31 -0000</pubDate><guid>https://sourceforge.net57ee279c96bf15c27126a0476a59689b4ee76b86</guid></item></channel></rss>