﻿{"id":5631,"date":"2018-07-10T00:01:38","date_gmt":"2018-07-09T22:01:38","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=5631"},"modified":"2018-10-17T13:00:58","modified_gmt":"2018-10-17T11:00:58","slug":"how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/","title":{"rendered":"How to set up Eclipse to develop QGis scripts or plugins"},"content":{"rendered":"<p>Eclipse software is an Eclipse Foundation project, developed and organized into a set of software sub-projects, to develop an open source software production environment that is open-ended, universal and versatile, relying mainly on Java.<\/p>\n<p>As one of the great success stories of Open Source, Eclipse has become a standard in the development software market, built in by leading software publishers as well as service companies.<\/p>\n<p>You can develop a plugin for QGis with a simple text editor, but if you want to have a real development environment, allowing you to quickly debug your scripts, Eclipse is the best solution.<br \/>\n<strong>Where to start?<\/strong><!--more--><\/p>\n<p>You must download and install\u00a0\u00a0\u00a0<strong><em>Eclipse AND<\/em><\/strong>\u00a0\u00a0\u00a0the plugin\u00a0\u00a0\u00a0<strong><em>PyDev<\/em><\/strong>\u00a0.<\/p>\n<p>To download the latest version of\u00a0<strong>Eclipse<\/strong>\u00a0\u00a0\u00a0:<\/p>\n<p><a href=\"https:\/\/translate.google.com\/translate?hl=en&amp;prev=_t&amp;sl=fr&amp;tl=en&amp;u=https:\/\/www.eclipse.org\/downloads\/download.php%3Ffile%3D\/oomph\/epp\/neon\/R\/eclipse-inst-win64.exe%26mirror_id%3D17\">https:\/\/www.eclipse.org\/downloads\/download.php?file=\/oomph\/epp\/neon\/R\/eclipse-inst-win64.exe&amp;mirror_id=17<\/a><\/p>\n<p>Run the installation file, selecting the installation \u00ab\u00a0Eclipse IDE for Java Developers\u00a0\u00bb<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5632\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl1.png?fit=623%2C643&amp;ssl=1\" data-orig-size=\"623,643\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl1.png?fit=623%2C643&amp;ssl=1\" class=\"alignnone size-medium wp-image-5632\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl1-291x300.png?resize=291%2C300\" alt=\"\" width=\"291\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl1.png?resize=291%2C300&amp;ssl=1 291w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl1.png?w=623&amp;ssl=1 623w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/p>\n<p>Once the installation is complete,\u00a0\u00a0\u00a0<strong>Eclipse<\/strong>\u00a0starts.\u00a0Then you must install the PyDev plugin for Eclipse.<\/p>\n<p>Go to the menu\u00a0\u00a0\u00a0<strong><em>Help-&gt; Install New software<\/em><\/strong><\/p>\n<p>Go to \u00ab\u00a0Work with\u00a0\u00bb and click \u00a0<strong><em>Add\u00a0 \u00a0\u00a0<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5633\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl2.png?fit=483%2C181&amp;ssl=1\" data-orig-size=\"483,181\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl2.png?fit=483%2C181&amp;ssl=1\" class=\"alignnone size-medium wp-image-5633\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl2-300x112.png?resize=300%2C112\" alt=\"\" width=\"300\" height=\"112\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl2.png?resize=300%2C112&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl2.png?w=483&amp;ssl=1 483w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Go to\u00a0\u00a0<strong><em>name<\/em><\/strong>\u00a0 and<em>\u00a0<\/em>\u00a0type\u00a0\u00a0\u00a0<strong>PyDev<\/strong>\u00a0\u00a0\u00a0and in\u00a0\u00a0\u00a0<strong><em>location<\/em><\/strong><em>\u00a0<\/em>\u00a0the download site address:\u00a0<strong>\u00a0<\/strong>\u00a0<strong><em>http:\/\/pydev.org\/updates<\/em><\/strong>\u00a0, and then click\u00a0\u00a0\u00a0<strong>OK\u00a0\u00a0<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5634\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl3.png?fit=840%2C661&amp;ssl=1\" data-orig-size=\"840,661\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl3.png?fit=640%2C504&amp;ssl=1\" class=\"alignnone size-medium wp-image-5634\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl3-300x236.png?resize=300%2C236\" alt=\"\" width=\"300\" height=\"236\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl3.png?resize=300%2C236&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl3.png?resize=768%2C604&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl3.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Check the box\u00a0\u00a0\u00a0<strong><em>PyDev<\/em><\/strong>, \u00a0then\u00a0\u00a0<strong><em>Next<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0and complete the plugin installation.<\/p>\n<p>Once finished, you must restart Eclipse.\u00a0You must define the Python interpreter to use:<\/p>\n<p>Go to the menu\u00a0\u00a0\u00a0<strong><em>Windows-&gt; Preferences\u00a0<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5635\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl4.png?fit=840%2C453&amp;ssl=1\" data-orig-size=\"840,453\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl4.png?fit=640%2C345&amp;ssl=1\" class=\"alignnone size-medium wp-image-5635\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl4-300x162.png?resize=300%2C162\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl4.png?resize=300%2C162&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl4.png?resize=768%2C414&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl4.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>In the left window, search for the item\u00a0\u00a0\u00a0<strong><em>PyDev -&gt; Interpreters -&gt; Python Interpreter<\/em><\/strong>\u00a0\u00a0\u00a0then click on <strong>New\u00a0<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5636\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl5.png?fit=548%2C234&amp;ssl=1\" data-orig-size=\"548,234\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl5.png?fit=548%2C234&amp;ssl=1\" class=\"alignnone size-medium wp-image-5636\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl5-300x128.png?resize=300%2C128\" alt=\"\" width=\"300\" height=\"128\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl5.png?resize=300%2C128&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl5.png?w=548&amp;ssl=1 548w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Re-enter PyQGIS\u00a0<em>\u00a0<\/em>\u00a0as name and point to the file\u00a0\u00a0\u00a0<strong><em>python.ex<\/em><\/strong>\u00a0e of your QGis installation.\u00a0It is located in its\u00a0\u00a0\u00a0<strong><em>bin<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0directory.<\/p>\n<p>When you click OK, the setup programme researches automatically all the available Python libraries to be added. \u00a0If you let this happen, you&rsquo;re going straight to conflicting libraries.\u00a0You have to fill in these libraries manually to make sure there is no contradiction<strong>. <\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5637\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl6\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl6.png?fit=405%2C367&amp;ssl=1\" data-orig-size=\"405,367\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl6\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl6.png?fit=405%2C367&amp;ssl=1\" class=\"alignnone size-medium wp-image-5637\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl6-300x272.png?resize=300%2C272\" alt=\"\" width=\"300\" height=\"272\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl6.png?resize=300%2C272&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl6.png?w=405&amp;ssl=1 405w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>A warning message appears telling you that no libraries have been specified.\u00a0Click on\u00a0\u00a0\u00a0<strong><em>Proceed anyway<\/em><\/strong>.<\/p>\n<p>Now, the most boring part of the installation.\u00a0Be as patient as possible&#8230;<\/p>\n<p>We will go back and forth between\u00a0\u00a0\u00a0<strong>Eclipse<\/strong>\u00a0\u00a0\u00a0and\u00a0\u00a0\u00a0<strong>QGis<\/strong>\u00a0\u00a0\u00a0to fill in all the necessary libraries.<\/p>\n<p>For each\u00a0\u00a0\u00a0<strong><em>Path<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0spotted in\u00a0\u00a0\u00a0<strong>QGis<\/strong>\u00a0, you will have to click on the button\u00a0\u00a0\u00a0<strong><em>New Folder<\/em><\/strong>\u00a0\u00a0\u00a0of \u00a0Eclipse and point to the directory concerned:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5638\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl7\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl7.png?fit=840%2C460&amp;ssl=1\" data-orig-size=\"840,460\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl7\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl7.png?fit=640%2C350&amp;ssl=1\" class=\"alignnone size-medium wp-image-5638\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl7-300x164.png?resize=300%2C164\" alt=\"\" width=\"300\" height=\"164\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl7.png?resize=300%2C164&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl7.png?resize=768%2C421&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl7.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>In\u00a0\u00a0\u00a0<strong>QGis<\/strong>\u00a0\u00a0\u00a0we will use the Python console.\u00a0Open it and simply type\u00a0\u00a0\u00a0<strong><em>qgis<\/em><\/strong>\u00a0\u00a0\u00a0.\u00a0You will get back the PyQGIS API path<strong>.\u00a0<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5639\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl8\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl8.png?fit=840%2C460&amp;ssl=1\" data-orig-size=\"840,460\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl8\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl8.png?fit=640%2C350&amp;ssl=1\" class=\"alignnone size-medium wp-image-5639\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl8-300x164.png?resize=300%2C164\" alt=\"\" width=\"300\" height=\"164\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl8.png?resize=300%2C164&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl8.png?resize=768%2C421&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl8.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Use your insight to decode the answer, knowing that it fits your QGis installation.\u00a0In this example the beginning is Programs \/ QgisEssen.\u00a0Ignore the \/.\/ as well as the last element.\u00a0Indeed, what you need to fill in Eclipse this last element directory.<\/p>\n<p>In Eclipse click\u00a0\u00a0\u00a0<strong><em>New Folder<\/em><\/strong>\u00a0\u00a0\u00a0and in the window that pops up, point directory<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5640\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl9\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl9.png?fit=840%2C344&amp;ssl=1\" data-orig-size=\"840,344\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl9\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl9.png?fit=640%2C262&amp;ssl=1\" class=\"alignnone size-medium wp-image-5640\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl9-300x123.png?resize=300%2C123\" alt=\"\" width=\"300\" height=\"123\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl9.png?resize=300%2C123&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl9.png?resize=768%2C315&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl9.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Click <strong>OK<\/strong>.\u00a0You will see the directory displayed in the list of PYTHONPATH System<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5641\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl10\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl10.png?fit=351%2C558&amp;ssl=1\" data-orig-size=\"351,558\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl10\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl10.png?fit=351%2C558&amp;ssl=1\" class=\"alignnone size-medium wp-image-5641\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl10-189x300.png?resize=189%2C300\" alt=\"\" width=\"189\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl10.png?resize=189%2C300&amp;ssl=1 189w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl10.png?w=351&amp;ssl=1 351w\" sizes=\"auto, (max-width: 189px) 100vw, 189px\" \/><\/p>\n<p>Right! But the hardest remains to be done.\u00a0Type in the Python console<\/p>\n<p><strong><em>import sys<\/em><\/strong><br \/>\n<strong><em>sys.path<\/em><\/strong><\/p>\n<p>You will have something like this<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5642\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl11\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl11.png?fit=840%2C549&amp;ssl=1\" data-orig-size=\"840,549\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl11\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl11.png?fit=640%2C418&amp;ssl=1\" class=\"alignnone size-medium wp-image-5642\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl11-300x196.png?resize=300%2C196\" alt=\"\" width=\"300\" height=\"196\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl11.png?resize=300%2C196&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl11.png?resize=768%2C502&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl11.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>For each path element you will have to repeat what we have done for the PyQGIS API, except for items you are sure do not interfere with your development, ie those that do not match your username, those that start with \\\\ Users \\ or those which correspond to software environments other than QGis (in this example the path starting with \\\\ PCI Geomatics).<\/p>\n<p>Once this is done for all paths, it&rsquo;s not over!\u00a0It remains to inform the QGis dlls.<\/p>\n<p>In the Eclipse Preferences window, click the Environment tab<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5643\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl12\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl12.png?fit=840%2C523&amp;ssl=1\" data-orig-size=\"840,523\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl12\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl12.png?fit=640%2C398&amp;ssl=1\" class=\"alignnone size-medium wp-image-5643\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl12-300x187.png?resize=300%2C187\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl12.png?resize=300%2C187&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl12.png?resize=768%2C478&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl12.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Click on New and in the window that opens type PATH in\u00a0\u00a0\u00a0<strong><em>Name<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0and in\u00a0\u00a0\u00a0<strong><em>Value<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0you will need to enter the list of QGis directories containing binary files, separated by;\u00a0.<\/p>\n<p>On Windows, take the following line and change the version of QGis to match the version installed on your computer:<\/p>\n<p>Brighton C: \\ Program Files \\ QGIS; C: \\ Program Files \\ QGIS<br \/>\nBrighton \\ bin; C: \\ Program Files \\ QGIS Brighton \\ apps \\ qgis \\ bin; C: \\ Program<br \/>\nBrighton Files \\ QGIS \\ apps \\ Python27 \\ DLLs<\/p>\n<p>The configuration of Eclipse is complete!!<\/p>\n<p><strong>How to debug Python scripts in QGis?<\/strong><\/p>\n<p>Both\u00a0\u00a0\u00a0<strong>QGIS<\/strong>\u00a0\u00a0\u00a0and\u00a0\u00a0\u00a0<strong>Eclipse<\/strong>\u00a0\u00a0\u00a0must be configured for debugging so that both software can communicate.\u00a0\u00a0\u00a0<strong>Eclipse<\/strong>\u00a0\u00a0\u00a0binds to\u00a0\u00a0\u00a0<strong>QGIS<\/strong>\u00a0\u00a0\u00a0to give you an overview of the Python scripts running in QGIS.\u00a0This approach allows you to run scripts in a controlled manner, suspend execution while you inspect the program for bugs when and where they occur.<\/p>\n<p>When you launch a script in QGis, it is hand over to Eclipse to execute the code, which in turn is returned to QGis.<\/p>\n<p>So we have to configure QGis to send the stream to Eclipse and Eclipse to return the results to QGis.<\/p>\n<p><strong>QGis Configuration.<\/strong><\/p>\n<p>In this step we will add two plugins to QGIS, which allow Eclipse to communicate with QGIS.\u00a0A plugin,\u00a0\u00a0\u00a0<strong><em>Plugin Reloader<\/em><\/strong>, allows you to reload a QGIS plugin into the memory without restarting QGIS, to run the tests faster.\u00a0The second plugin,\u00a0\u00a0\u00a0<strong><em>Remote Debug<\/em><\/strong>, links QGIS to Eclipse.<br \/>\n<strong><em>Remote Debug<\/em><\/strong>\u00a0\u00a0\u00a0is an experimental plugin, so you need to make sure the experimental plugins are visible in the list of available QGIS Plugin Manager plugins.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5644\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl13\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl13.png?fit=840%2C551&amp;ssl=1\" data-orig-size=\"840,551\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl13\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl13.png?fit=640%2C420&amp;ssl=1\" class=\"alignnone size-medium wp-image-5644\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl13-300x197.png?resize=300%2C197\" alt=\"\" width=\"300\" height=\"197\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl13.png?resize=300%2C197&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl13.png?resize=768%2C504&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl13.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Install both plugins.\u00a0Take advantage of the opportunity to install, as well, \u00a0the HelloWorldPlugin, which will be helpful to test your configuration. Note the plugin&rsquo;s location:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5645\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl14\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl14.png?fit=840%2C534&amp;ssl=1\" data-orig-size=\"840,534\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl14\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl14.png?fit=640%2C407&amp;ssl=1\" class=\"alignnone size-medium wp-image-5645\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl14-300x191.png?resize=300%2C191\" alt=\"\" width=\"300\" height=\"191\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl14.png?resize=300%2C191&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl14.png?resize=768%2C488&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl14.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong>Eclipse configuration.<\/strong><\/p>\n<p>Launch\u00a0\u00a0\u00a0<strong>Eclipse<\/strong><\/p>\n<p>Go to the menu\u00a0\u00a0\u00a0<strong><em>File-&gt; New-&gt; Project\u00a0 \u00a0\u00a0<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5646\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl15\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl15.png?fit=840%2C537&amp;ssl=1\" data-orig-size=\"840,537\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl15\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl15.png?fit=640%2C409&amp;ssl=1\" class=\"alignnone size-medium wp-image-5646\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl15-300x192.png?resize=300%2C192\" alt=\"\" width=\"300\" height=\"192\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl15.png?resize=300%2C192&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl15.png?resize=768%2C491&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl15.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Select\u00a0\u00a0\u00a0<strong><em>General<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0then\u00a0\u00a0\u00a0<strong><em>Project<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0and click on\u00a0\u00a0\u00a0<strong><em>Next\u00a0\u00a0<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5647\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl16\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl16.png?fit=733%2C655&amp;ssl=1\" data-orig-size=\"733,655\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl16\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl16.png?fit=640%2C572&amp;ssl=1\" class=\"alignnone size-medium wp-image-5647\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl16-300x268.png?resize=300%2C268\" alt=\"\" width=\"300\" height=\"268\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl16.png?resize=300%2C268&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl16.png?w=733&amp;ssl=1 733w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Name the project, for example, to test the operation,\u00a0\u00a0\u00a0<strong><em>HelloWorld Project<\/em><\/strong>\u00a0, then click on the button\u00a0\u00a0\u00a0<strong><em>Finish<\/em><\/strong>\u00a0.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5648\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl17\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl17.png?fit=507%2C491&amp;ssl=1\" data-orig-size=\"507,491\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl17\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl17.png?fit=507%2C491&amp;ssl=1\" class=\"alignnone size-medium wp-image-5648\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl17-300x291.png?resize=300%2C291\" alt=\"\" width=\"300\" height=\"291\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl17.png?resize=300%2C291&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl17.png?w=507&amp;ssl=1 507w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Select the project you just created, then right-click and\u00a0\u00a0\u00a0<strong><em>New -&gt; Folder\u00a0\u00a0<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5649\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl18\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl18.png?fit=840%2C416&amp;ssl=1\" data-orig-size=\"840,416\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl18\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl18.png?fit=640%2C317&amp;ssl=1\" class=\"alignnone size-medium wp-image-5649\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl18-300x149.png?resize=300%2C149\" alt=\"\" width=\"300\" height=\"149\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl18.png?resize=300%2C149&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl18.png?resize=768%2C380&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl18.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>In the window\u00a0\u00a0\u00a0<strong><em>New Folder<\/em><\/strong>\u00a0\u00a0\u00a0which pops up, click on the button\u00a0\u00a0\u00a0<strong><em>Advanced\u00a0<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5650\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl19\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl19.png?fit=617%2C693&amp;ssl=1\" data-orig-size=\"617,693\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl19\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl19.png?fit=617%2C693&amp;ssl=1\" class=\"alignnone size-medium wp-image-5650\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl19-267x300.png?resize=267%2C300\" alt=\"\" width=\"267\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl19.png?resize=267%2C300&amp;ssl=1 267w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl19.png?w=617&amp;ssl=1 617w\" sizes=\"auto, (max-width: 267px) 100vw, 267px\" \/><\/p>\n<p>Check the box \u00a0\u201cLink to alternate location (Linked Folder)\u201d\u00a0\u00a0\u00a0Then with the button\u00a0\u00a0\u00a0<strong><em>browse<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0point to the plugin directory to debug, in our example\u00a0\u00a0\u00a0<em>HelloWorld<\/em>\u00a0, in the directory that you checked during its installation.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5651\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl20\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl20.png?fit=508%2C596&amp;ssl=1\" data-orig-size=\"508,596\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl20\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl20.png?fit=508%2C596&amp;ssl=1\" class=\"alignnone size-medium wp-image-5651\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl20-256x300.png?resize=256%2C300\" alt=\"\" width=\"256\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl20.png?resize=256%2C300&amp;ssl=1 256w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl20.png?w=508&amp;ssl=1 508w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Configuration Test<\/strong><\/p>\n<p>To test the configuration, we will place a breakpoint in the script code\u00a0\u00a0\u00a0<strong><em>HelloWorld<\/em><\/strong>\u00a0, launch it in\u00a0\u00a0\u00a0<strong>QGis<\/strong>\u00a0, verify the code is on stop in\u00a0\u00a0\u00a0<strong>Eclipse<\/strong>\u00a0, restart execution in\u00a0\u00a0\u00a0<strong>Eclipse<\/strong>\u00a0\u00a0\u00a0and see the window appearing in\u00a0\u00a0\u00a0<strong>QGis<\/strong>\u00a0.<\/p>\n<p>To set the breakpoint:<\/p>\n<p>In\u00a0\u00a0\u00a0<strong>Eclipse<\/strong>, open the HelloWorld.py file by double-clicking on it<strong>.\u00a0<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5652\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl21\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl21.png?fit=512%2C746&amp;ssl=1\" data-orig-size=\"512,746\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl21\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl21.png?fit=512%2C746&amp;ssl=1\" class=\"alignnone size-medium wp-image-5652\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl21-206x300.png?resize=206%2C300\" alt=\"\" width=\"206\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl21.png?resize=206%2C300&amp;ssl=1 206w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl21.png?w=512&amp;ssl=1 512w\" sizes=\"auto, (max-width: 206px) 100vw, 206px\" \/><\/p>\n<p>Go to the menu\u00a0\u00a0\u00a0<strong><em>Window -&gt; Perspective -&gt; Open Perspective -&gt; Other &#8230;\u00a0<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5653\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl22\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl22.png?fit=840%2C474&amp;ssl=1\" data-orig-size=\"840,474\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl22\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl22.png?fit=640%2C361&amp;ssl=1\" class=\"alignnone size-medium wp-image-5653\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl22-300x169.png?resize=300%2C169\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl22.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl22.png?resize=768%2C433&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl22.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>In the new window select\u00a0\u00a0\u00a0<strong><em>debug<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0and click on\u00a0\u00a0\u00a0<strong><em>OK\u00a0 \u00a0<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5654\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl23\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl23.png?fit=640%2C301&amp;ssl=1\" data-orig-size=\"640,301\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl23\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl23.png?fit=640%2C301&amp;ssl=1\" class=\"alignnone size-medium wp-image-5654\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl23-300x141.png?resize=300%2C141\" alt=\"\" width=\"300\" height=\"141\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl23.png?resize=300%2C141&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl23.png?w=640&amp;ssl=1 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The \u00ab\u00a0perspective\u201d\u00a0\u00a0\u00a0Debug type is taken by Eclipse<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5655\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl24\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl24.png?fit=342%2C430&amp;ssl=1\" data-orig-size=\"342,430\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl24\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl24.png?fit=342%2C430&amp;ssl=1\" class=\"alignnone size-medium wp-image-5655\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl24-239x300.png?resize=239%2C300\" alt=\"\" width=\"239\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl24.png?resize=239%2C300&amp;ssl=1 239w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl24.png?w=342&amp;ssl=1 342w\" sizes=\"auto, (max-width: 239px) 100vw, 239px\" \/><\/p>\n<p>Look for the first line of the plugin (def hello_world (self) \ud83d\ude42 and double-click to the left of the line number to place a breakpoint (green bug)<\/p>\n<p>From the PyDev menu, select\u00a0\u00a0\u00a0<strong><em>Start Debug Server<\/em><\/strong><strong>. <\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5656\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl25\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl25.png?fit=840%2C647&amp;ssl=1\" data-orig-size=\"840,647\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl25\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl25.png?fit=640%2C493&amp;ssl=1\" class=\"alignnone size-medium wp-image-5656\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl25-300x231.png?resize=300%2C231\" alt=\"\" width=\"300\" height=\"231\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl25.png?resize=300%2C231&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl25.png?resize=768%2C592&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl25.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong><em>Debug Server at port: 5678<\/em><\/strong><\/p>\n<p>In the console (bellow the Eclipse window).<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5657\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl26\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl26.png?fit=293%2C193&amp;ssl=1\" data-orig-size=\"293,193\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl26\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl26.png?fit=293%2C193&amp;ssl=1\" class=\"alignnone size-full wp-image-5657\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl26.png?resize=293%2C193\" alt=\"\" width=\"293\" height=\"193\" \/><\/p>\n<p>Now, go to\u00a0<strong>QGis<\/strong>\u00a0.\u00a0In the\u00a0\u00a0\u00a0<strong><em>Extensions<\/em><\/strong>\u00a0menu<em>\u00a0<\/em>\u00a0click on\u00a0\u00a0\u00a0<strong><em>Remote Debug -&gt; Remote Debug\u00a0\u00a0<\/em><\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5658\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl27\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl27.png?fit=840%2C463&amp;ssl=1\" data-orig-size=\"840,463\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl27\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl27.png?fit=640%2C353&amp;ssl=1\" class=\"alignnone size-medium wp-image-5658\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl27-300x165.png?resize=300%2C165\" alt=\"\" width=\"300\" height=\"165\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl27.png?resize=300%2C165&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl27.png?resize=768%2C423&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl27.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The Remote Debugger window opens.\u00a0A last configuration is necessary.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5659\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl28\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl28.png?fit=447%2C186&amp;ssl=1\" data-orig-size=\"447,186\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl28\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl28.png?fit=447%2C186&amp;ssl=1\" class=\"alignnone size-medium wp-image-5659\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl28-300x125.png?resize=300%2C125\" alt=\"\" width=\"300\" height=\"125\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl28.png?resize=300%2C125&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl28.png?w=447&amp;ssl=1 447w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Be sure that\u00a0\u00a0\u00a0<strong><em>Debugger<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0is placed on\u00a0\u00a0\u00a0<strong><em>PyDev (Eclipse)<\/em><\/strong>.\u00a0In\u00a0\u00a0\u00a0<strong><em>PyDevd path<\/em><\/strong>, as its name suggests, indicate where the file \u00a0\u00a0\u00a0<strong><em>pydevd.py<\/em><\/strong>\u00a0is located.<\/p>\n<p>The easiest way is to search the Windows file manager and copy paste the path of that file.\u00a0You only have to perform this operation the first time you use Remote Debugger.<\/p>\n<p>Once done, click <strong><em>Connect<\/em><\/strong>, the window closes and a message appears in\u00a0\u00a0\u00a0<strong>QGis<\/strong>\u00a0\u00a0\u00a0indicating you:\u00a0\u00a0\u00a0<strong><em>Python Debugging Active<\/em><\/strong>\u00a0.<\/p>\n<p>Launch the HeloWorld plugin from the menu\u00a0\u00a0\u00a0<strong><em>Extension -&gt; HelloWorld -&gt; HelloWorld.<\/em><\/strong><\/p>\n<p>This, usually, results in displaying a message window with the text\u00a0\u00a0\u00a0<em>Hello World<\/em>\u00a0.\u00a0But here, nothing happens.<\/p>\n<p>Go to\u00a0<strong>Eclipse<\/strong>\u00a0.<\/p>\n<p>You will verify that the line with the breakpoint is highlighted.\u00a0This means that the execution of the script is stopped at this point.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5660\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl29\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl29.png?fit=420%2C343&amp;ssl=1\" data-orig-size=\"420,343\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl29\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl29.png?fit=420%2C343&amp;ssl=1\" class=\"alignnone size-medium wp-image-5660\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl29-300x245.png?resize=300%2C245\" alt=\"\" width=\"300\" height=\"245\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl29.png?resize=300%2C245&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl29.png?w=420&amp;ssl=1 420w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>To restart the execution, go to the menu\u00a0\u00a0\u00a0<strong><em>Run-&gt; Restart<\/em><\/strong><\/p>\n<p>Go to QGis.\u00a0The Hello World window has appeared!<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5661\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/how-to-set-up-eclipse-to-develop-qgis-scripts-or-plugins\/ecl30\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl30.png?fit=840%2C458&amp;ssl=1\" data-orig-size=\"840,458\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ecl30\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl30.png?fit=640%2C349&amp;ssl=1\" class=\"alignnone size-medium wp-image-5661\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl30-300x164.png?resize=300%2C164\" alt=\"\" width=\"300\" height=\"164\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl30.png?resize=300%2C164&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl30.png?resize=768%2C419&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/07\/ecl30.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The configuration of your development environment is complete.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eclipse software is an Eclipse Foundation project, developed and organized into a set of software sub-projects, to develop an open source software production environment that is open-ended, universal and versatile, relying mainly on Java. As one&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1260],"tags":[],"class_list":["post-5631","post","type-post","status-publish","format-standard","hentry","category-non-classe-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-1sP","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=5631"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5631\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=5631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=5631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=5631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}