<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Debugging</title><link>https://sourceforge.net/p/ikvm/wiki/Debugging/</link><description>Recent changes to Debugging</description><atom:link href="https://sourceforge.net/p/ikvm/wiki/Debugging/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 29 Jun 2014 06:24:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ikvm/wiki/Debugging/feed" rel="self" type="application/rss+xml"/><item><title>Debugging modified by Small SQL</title><link>https://sourceforge.net/p/ikvm/wiki/Debugging/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -31,6 +31,6 @@

   * Change the path to your vfs.zip 

-An alternative solution is to add vfs.zip to the project IKVM.Runtime. Because Visual Studio copy the file in the project root that you need to copy from time to time a new version of vfs.zip in the project root. 
+An alternative solution is to add vfs.zip to the project IKVM.Runtime and set the build property to embedded. Because Visual Studio copy the file in the project root that you need to copy from time to time a new version of vfs.zip in the project root. 

 If you want debug inside the original Java sources then you need to compile it with debug. This can you do in the build file "response.txt". Add the flag "-debug" to the block of every dll that you want debug. 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Small SQL</dc:creator><pubDate>Sun, 29 Jun 2014 06:24:25 -0000</pubDate><guid>https://sourceforge.netce05f6793a1aaaf8dd3c4c9a2b76da251feb8452</guid></item><item><title>Debugging modified by Small SQL</title><link>https://sourceforge.net/p/ikvm/wiki/Debugging/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -9,7 +9,7 @@
   * Copy the ikvm.exe to java.exe. If you update your IKVM then you should repeat this. 
   * Create a lib directory parallel to the bin directory. 
   * Copy a rt.jar from an existing Sun Java VM in the lib directory. 
-  * In the Eclipse "Preference | Java | Installed JREs" add a standard VM. This should be possible now. 
+  * In the Eclipse "Preference | Java | Installed JREs" add a standard VM. This should be possible now. If not then you need to restart Eclipse. Eclipse check one directory only once.

 Change the launch of you your program that it use the IKVM. It can be helpful to copy the launch and use one for the Sun VM and one for IKVM. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Small SQL</dc:creator><pubDate>Sun, 29 Jun 2014 06:24:25 -0000</pubDate><guid>https://sourceforge.net4e9a0a4aaee30140f232477a1fe12013640ef011</guid></item><item><title>Debugging modified by Small SQL</title><link>https://sourceforge.net/p/ikvm/wiki/Debugging/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -31,4 +31,6 @@

   * Change the path to your vfs.zip 

+An alternative solution is to add vfs.zip to the project IKVM.Runtime. Because Visual Studio copy the file in the project root that you need to copy from time to time a new version of vfs.zip in the project root. 
+
 If you want debug inside the original Java sources then you need to compile it with debug. This can you do in the build file "response.txt". Add the flag "-debug" to the block of every dll that you want debug. 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Small SQL</dc:creator><pubDate>Sun, 29 Jun 2014 06:24:25 -0000</pubDate><guid>https://sourceforge.net7c358217ea6bf11fd8dbc661ade2bdd812eadfba</guid></item><item><title>Debugging modified by Small SQL</title><link>https://sourceforge.net/p/ikvm/wiki/Debugging/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -17,7 +17,7 @@

 Because IKVM is a .NET application that it is possible to debug it with Visual Studio or Visual Studio Express for C#. 

-  * First you must checkout IKVM vrom CVS [Repository]. 
+  * First you must checkout IKVM from CVS [Repository]. 
   * Then you must [build](Building) it or copy a compiled version in the bin directory 
   * In the file source file vfs.cs you need to replace the line: 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Small SQL</dc:creator><pubDate>Sun, 29 Jun 2014 06:24:25 -0000</pubDate><guid>https://sourceforge.netaf0d0922fb4237893e159d35208c827835dfbdd2</guid></item><item><title>Debugging modified by Small SQL</title><link>https://sourceforge.net/p/ikvm/wiki/Debugging/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -18,7 +18,7 @@
 Because IKVM is a .NET application that it is possible to debug it with Visual Studio or Visual Studio Express for C#.

   * First you must checkout IKVM vrom CVS [Repository]. 
-  * Then you must [Building](Build) it or copy a compiled version in the bin directory 
+  * Then you must [build](Building) it or copy a compiled version in the bin directory 
   * In the file source file vfs.cs you need to replace the line: 

     return Assembly.GetExecutingAssembly().GetManifestResourceStream("vfs.zip");
@@ -31,4 +31,4 @@

   * Change the path to your vfs.zip 

-If you want debug inside the original Java sources then you need to compile it with debug. 
+If you want debug inside the original Java sources then you need to compile it with debug. This can you do in the build file "response.txt". Add the flag "-debug" to the block of every dll that you want debug. 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Small SQL</dc:creator><pubDate>Sun, 29 Jun 2014 06:24:25 -0000</pubDate><guid>https://sourceforge.net3c8e0c3f007d016ea3fff38f4e6e289ad1c38156</guid></item><item><title>Debugging modified by Small SQL</title><link>https://sourceforge.net/p/ikvm/wiki/Debugging/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="debugging"&gt;Debugging&lt;/h1&gt;
&lt;p&gt;In some cases it is needed to debug a Java program that run with IKVM because there there are some things other us with the Sun Java VM. Currently IKVM does not have a Java debug interface. If you want contribute your help is very welcome. &lt;/p&gt;
&lt;h2 id="run-in-eclipse"&gt;Run in Eclipse&lt;/h2&gt;
&lt;p&gt;You can not debug a IKVM application but you can run it with Eclipse. Then you can add debug output to your program with System.out. If you want run a Java application with Eclipse then you need: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Copy the ikvm.exe to java.exe. If you update your IKVM then you should repeat this. &lt;/li&gt;
&lt;li&gt;Create a lib directory parallel to the bin directory. &lt;/li&gt;
&lt;li&gt;Copy a rt.jar from an existing Sun Java VM in the lib directory. &lt;/li&gt;
&lt;li&gt;In the Eclipse "Preference | Java | Installed JREs" add a standard VM. This should be possible now. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Change the launch of you your program that it use the IKVM. It can be helpful to copy the launch and use one for the Sun VM and one for IKVM. &lt;/p&gt;
&lt;h2 id="debugging-with-visual-studio"&gt;Debugging with Visual Studio&lt;/h2&gt;
&lt;p&gt;Because IKVM is a .NET application that it is possible to debug it with Visual Studio or Visual Studio Express for C#. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First you must checkout IKVM vrom CVS &lt;span&gt;[Repository]&lt;/span&gt;. &lt;/li&gt;
&lt;li&gt;Then you must &lt;a class="" href="../Build"&gt;Building&lt;/a&gt; it or copy a compiled version in the bin directory &lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the file source file vfs.cs you need to replace the line: &lt;/p&gt;
&lt;p&gt;return Assembly.GetExecutingAssembly().GetManifestResourceStream("vfs.zip");&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;with: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IO&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;FileStream&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;c:&lt;/span&gt;&lt;span class="se"&gt;\\&lt;/span&gt;&lt;span class="s"&gt;ikvm&lt;/span&gt;&lt;span class="se"&gt;\\&lt;/span&gt;&lt;span class="s"&gt;openjdk&lt;/span&gt;&lt;span class="se"&gt;\\&lt;/span&gt;&lt;span class="s"&gt;vfs.zip&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IO&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;FileMode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Open&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Change the path to your vfs.zip &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you want debug inside the original Java sources then you need to compile it with debug. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Small SQL</dc:creator><pubDate>Sun, 29 Jun 2014 06:24:25 -0000</pubDate><guid>https://sourceforge.nete808804f23671ee9f084198c13cf3e75f534b574</guid></item></channel></rss>