<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Slicer3%3A%3ADebugging_with_Eclipse_Instructions</id>
	<title>Slicer3::Debugging with Eclipse Instructions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Slicer3%3A%3ADebugging_with_Eclipse_Instructions"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Slicer3::Debugging_with_Eclipse_Instructions&amp;action=history"/>
	<updated>2026-06-19T20:59:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Slicer3::Debugging_with_Eclipse_Instructions&amp;diff=62601&amp;oldid=prev</id>
		<title>Grundlett: Text replacement - &quot;https?:\/\/(?:www|wiki)\.slicer\.org\/slicerWiki\/index\.php\/([^ ]+)

&quot; to &quot;https://www.slicer.org/wiki/$1 &quot;</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Slicer3::Debugging_with_Eclipse_Instructions&amp;diff=62601&amp;oldid=prev"/>
		<updated>2019-11-27T13:18:27Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;https?:\/\/(?:www|wiki)\.slicer\.org\/slicerWiki\/index\.php\/([^ ]+)  &amp;quot; to &amp;quot;https://www.slicer.org/wiki/$1 &amp;quot;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:18, 27 November 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Create the project in Eclipse by referring to the makefile and entering an external make command line&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Create the project in Eclipse by referring to the makefile and entering an external make command line&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Instructions for the build steps can be found at [[Slicer3::New_Eclipse_Instructions|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http&lt;/del&gt;://www.slicer.org/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;slicerWiki/index.php&lt;/del&gt;/Slicer3::New_Eclipse_Instructions]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Instructions for the build steps can be found at [[Slicer3::New_Eclipse_Instructions|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;https&lt;/ins&gt;://www.slicer.org/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;wiki&lt;/ins&gt;/Slicer3::New_Eclipse_Instructions]] Assuming that Slicer is building under Eclipse, we'll take off from this point on:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Assuming that Slicer is building under Eclipse, we'll take off from this point on:&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Understanding Slicer's startup process==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Understanding Slicer's startup process==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Grundlett</name></author>
		
	</entry>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Slicer3::Debugging_with_Eclipse_Instructions&amp;diff=62186&amp;oldid=prev</id>
		<title>Grundlett: Text replacement - &quot;\[http:\/\/www\.slicer\.org\/slicerWiki\/index\.php\/([^ ]+) ([^]]+)]&quot; to &quot;$2&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Slicer3::Debugging_with_Eclipse_Instructions&amp;diff=62186&amp;oldid=prev"/>
		<updated>2019-11-27T02:21:42Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;\[http:\/\/www\.slicer\.org\/slicerWiki\/index\.php\/([^ ]+) ([^]]+)]&amp;quot; to &amp;quot;&lt;a href=&quot;/w/index.php?title=$1&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;$1 (page does not exist)&quot;&gt;$2&lt;/a&gt;&amp;quot;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 02:21, 27 November 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Create the project in Eclipse by referring to the makefile and entering an external make command line&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Create the project in Eclipse by referring to the makefile and entering an external make command line&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Instructions for the build steps can be found at [&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http://www.slicer.org/slicerWiki/index.php/&lt;/del&gt;Slicer3::New_Eclipse_Instructions http://www.slicer.org/slicerWiki/index.php/Slicer3::New_Eclipse_Instructions]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Instructions for the build steps can be found at [&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;Slicer3::New_Eclipse_Instructions&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/ins&gt;http://www.slicer.org/slicerWiki/index.php/Slicer3::New_Eclipse_Instructions&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]&lt;/ins&gt;]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Assuming that Slicer is building under Eclipse, we'll take off from this point on:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Assuming that Slicer is building under Eclipse, we'll take off from this point on:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Grundlett</name></author>
		
	</entry>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Slicer3::Debugging_with_Eclipse_Instructions&amp;diff=17581&amp;oldid=prev</id>
		<title>Clisle: Created page with 'There are a few  key things about interactive debugging under Eclipse that once are done right, then it just works:  # build Slicer totally first the normal way, either with cmak…'</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Slicer3::Debugging_with_Eclipse_Instructions&amp;diff=17581&amp;oldid=prev"/>
		<updated>2010-08-24T12:26:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;There are a few  key things about interactive debugging under Eclipse that once are done right, then it just works:  # build Slicer totally first the normal way, either with cmak…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are a few  key things about interactive debugging under Eclipse that once are done right, then it just works:&lt;br /&gt;
&lt;br /&gt;
# build Slicer totally first the normal way, either with cmake or getbuildtest.tcl. &lt;br /&gt;
# Create the project in Eclipse by referring to the makefile and entering an external make command line&lt;br /&gt;
&lt;br /&gt;
Instructions for the build steps can be found at [http://www.slicer.org/slicerWiki/index.php/Slicer3::New_Eclipse_Instructions http://www.slicer.org/slicerWiki/index.php/Slicer3::New_Eclipse_Instructions]&lt;br /&gt;
&lt;br /&gt;
Assuming that Slicer is building under Eclipse, we'll take off from this point on:&lt;br /&gt;
&lt;br /&gt;
==Understanding Slicer's startup process==&lt;br /&gt;
The executable xxxx/Slicer3-build/Slicer3 is not the real program, instead it is just a &amp;quot;launcher&amp;quot;.   This executable sets up a bunch of paths and environment variables, then launches the real executable.   The &amp;quot;real&amp;quot; Slicer3 program is stored in:  xxxx/Slicer3-build/bin/Slicer3-real.    So when we are asking Eclipse to run Slicer under the debugger, we really want Eclipse to startup and attach to an instance of &amp;quot;Slicer3-real&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
'''Step 1:''' There is a script in xxx/Slicer3-build/bin/Slicer3SetupPaths.sh or Slicer3SetupPaths.csh which sets up the same paths as the launcher.  If we run this script in a shell window (on Mac or Linux), then run eclipse from the same shell, we will have the environment defined.  This is how to try it the first few times, but there is a cleaner way we will try after we know debugging is working.   So if you are on either a Mac or Linux, open a shell and source this setup script, please. &lt;br /&gt;
&lt;br /&gt;
Then in the same shell, start eclipse.  It will be something like this:&lt;br /&gt;
&lt;br /&gt;
#% source /usr/local/slicers/trunk/Slicer3-build/bin/Slicer3SetupPaths.sh&lt;br /&gt;
#% ~/Desktop/eclipse/eclipse &amp;amp;&lt;br /&gt;
&lt;br /&gt;
'''Step 2:''' Then in the Eclipse window, open the Project/Properties by right-clicking on the Project Explorer entry for your Slicer build.  Then select the &amp;quot;Run/Debug Settings&amp;quot; entry.  We want to set the executable to point to &amp;quot;Slicer3-real&amp;quot; instead of &amp;quot;Slicer3&amp;quot;.  This plus running the script in the shell Eclipse was started from *may* be enough to get the debugger started on Slicer.    &lt;br /&gt;
&lt;br /&gt;
If you are using a Mac, shared library loading can be slow and gdb can timeout during Slicer's loading process.  I have not had this problem on Linux and can't comment on Windows since I have not tried it in under Windows.  It was helpful on Mac under Leopard and Snow Leopard to increase the default timeout allowed by Eclipse if your Mac needs a bit more time to get everything initialized when first beginning a debugging session.&lt;br /&gt;
&lt;br /&gt;
== Note to Snow Leopard users ==&lt;br /&gt;
In the Summer of 2010, we found moving to Snow Leopard caused debugging to stop working.  The newest (nightly build) of Eclipse was needed to get breakpoints to actually force the program to stop again.  Debugging worked without tweaking Eclipse for systems running Tiger and Leopard.  However, the 64-bit only mode of Snow Leopard meant a 64-bit Eclipse is needed for debugging.   It is expected that these issues will be resolved in the release version of Eclipse 3.6 (Helios). Do remember that debugging only works using a 64-bit version of Eclipse  on Snow Leopard (because the build is now a 64-bit build.)&lt;/div&gt;</summary>
		<author><name>Clisle</name></author>
		
	</entry>
</feed>