<?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=Documentation%2F4.4%2FExtensions%2FPyDevRemoteDebug</id>
	<title>Documentation/4.4/Extensions/PyDevRemoteDebug - 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=Documentation%2F4.4%2FExtensions%2FPyDevRemoteDebug"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.4/Extensions/PyDevRemoteDebug&amp;action=history"/>
	<updated>2026-10-01T15:59:41Z</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=Documentation/4.4/Extensions/PyDevRemoteDebug&amp;diff=40316&amp;oldid=prev</id>
		<title>UpdateBot: Nightly -&gt; 4.4</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.4/Extensions/PyDevRemoteDebug&amp;diff=40316&amp;oldid=prev"/>
		<updated>2014-12-25T06:47:56Z</updated>

		<summary type="html">&lt;p&gt;Nightly -&amp;gt; 4.4&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{documentation/versioncheck}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-header}}&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Introduction and Acknowledgements}}&lt;br /&gt;
Author: Andras Lasso (PerkLab, Queen's University)&amp;lt;br&amp;gt;&lt;br /&gt;
Contact: Andras Lasso, &amp;lt;email&amp;gt;lasso@queensu.ca&amp;lt;/email&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Project website: http://www.slicerrt.org&amp;lt;br&amp;gt;&lt;br /&gt;
License: [http://www.slicer.org/pages/LicenseText Slicer license]&lt;br /&gt;
{{documentation/{{documentation/version}}/module-introduction-logo-gallery&lt;br /&gt;
|{{collaborator|logo|sparkit}}|SparKit&lt;br /&gt;
|{{collaborator|logo|namic}}|NA-MIC&lt;br /&gt;
|{{collaborator|logo|perklab}}|PerkLab&lt;br /&gt;
|{{collaborator|logo|ocairo}}|OCAIRO&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/extension-section|Extension Description}}&lt;br /&gt;
{|&lt;br /&gt;
[[Image:PyDevRemoteDebugExtension.png|left]]&lt;br /&gt;
|&lt;br /&gt;
Python Debugger is an extension of 3D Slicer to allow debugging of Python scripts in the Eclipse integrated development environment using PyDev.&lt;br /&gt;
&lt;br /&gt;
Visual debugging (setting breakpoints, execute code step-by-step, view variables, stack, etc.) of Python scripted module is possible by using [http://pydev.org/ PyDev].&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/extension-section|Modules}}&lt;br /&gt;
&lt;br /&gt;
* Python debugger (in the module list: Developer Tools)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/extension-section|Use Cases}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=&amp;quot;200px&amp;quot; perrow=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
Image:PyDevRemoteDebugSlicer.png|Debugging Slicer in PyDev&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/extension-section|Tutorials}}&lt;br /&gt;
&lt;br /&gt;
===Setup===&lt;br /&gt;
* Install PyDev: the simplest is to use the standalone [http://brainwy.github.io/liclipse/ LiClipse] package&lt;br /&gt;
* Run PyDev and enable the remote debugger tool (if you have trouble following these steps then you can find detailed instructions [http://pydev.org/manual_adv_remote_debugger.html here]):&lt;br /&gt;
** Enable PyDev server: in the menu Window &amp;gt; Customize perspective &amp;gt; Command groups availability &amp;gt; PyDev debug&lt;br /&gt;
** Open the debug window: in the menu Window &amp;gt; Open Perspective &amp;gt; Other &amp;gt; Debug&lt;br /&gt;
* In Slicer:&lt;br /&gt;
* Install the Python debugger extension&lt;br /&gt;
** Open the ''Python debugger'' module (in ''Developer Tools'' category)&lt;br /&gt;
** In the ''Settings'' section set the directory that contains the ''pydevd.py'' file. Usually it is in the Eclipse plugins directory /...pydev.../pysrc. &lt;br /&gt;
&lt;br /&gt;
===Start debugging===&lt;br /&gt;
* In PyDev&lt;br /&gt;
** Start the server: on the toolbar click the button &amp;quot;PyDev: start the pydev server&amp;quot;&lt;br /&gt;
[[File:PyDevStartRemoteDebug.png]]&lt;br /&gt;
* In Slicer:&lt;br /&gt;
** Open the ''Python debugger'' module (in ''Developer Tools'' category)&lt;br /&gt;
** Click on ''Connect''&lt;br /&gt;
** If the debugger is successfully attached, then it will pause Slicer, so Slicer becomes unresponsive (until its execution is resumed in PyDev)&lt;br /&gt;
* In PyDev.&lt;br /&gt;
** Slicer execution is now paused. Resume Slicer execution by pressing the &amp;quot;Resume&amp;quot; button on the toolbar.&lt;br /&gt;
** Load your .py file into PyDev and add breakpoints (Ctrl+Shift+B) where you want your execution to stop for debugging.&lt;br /&gt;
** Important: you can open a terminal, where you can enter Python commands while the execution is paused (you have access to all Slicer variable, it has auto-complete, etc.) by clicking on &amp;quot;Open Console&amp;quot; (small button at the top of the console view) then chose &amp;quot;PyDev Console&amp;quot; and then &amp;quot;PyDev Debug Console&amp;quot; (after this the title of the console should be &amp;quot;PyDev Debug Console&amp;quot; instead of the default &amp;quot;Debug Server&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
{{documentation/{{documentation/version}}/extension-section|Similar Extensions}}&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
{{documentation/{{documentation/version}}/extension-section|References}}&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/extension-section|Information for Developers}}&lt;br /&gt;
* Source code: https://subversion.assembla.com/svn/slicerrt/trunk/PyDevRemoteDebug&lt;br /&gt;
* Issue tracker:  [https://www.assembla.com/spaces/slicerrt/tickets open issues and enhancement requests]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
{{documentation/{{documentation/version}}/extension-section|Troubleshooting}}&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/extension-footer}}&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;/div&gt;</summary>
		<author><name>UpdateBot</name></author>
		
	</entry>
</feed>