Difference between revisions of "Documentation/Nightly/Developers/Tutorials/Debug Instructions/CodeLite"

From Slicer Wiki
Jump to: navigation, search
(Created page with 'http://www.codelite.org CodeLite is a relatively lightweight, cross-platform IDE ==Configure build== Right-click on project name and select Settings, then Customize *Enable…')
 
(Prepend documentation/versioncheck template. See http://na-mic.org/Mantis/view.php?id=2887)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[http://www.codelite.org CodeLite]] is a relatively lightweight, cross-platform IDE
+
<noinclude>{{documentation/versioncheck}}</noinclude>
 +
[http://www.codelite.org CodeLite] is a relatively lightweight, cross-platform IDE
  
 
==Configure build==
 
==Configure build==
Line 15: Line 16:
 
After setting up the wrapper script ("WrapSlicer4" below), change the following options:
 
After setting up the wrapper script ("WrapSlicer4" below), change the following options:
  
 +
[[File:codelite-settings-1.png|100px|thumb|left|alt text]]
 
Under Settings->General:
 
Under Settings->General:
 
*Program = /cmn/git/Slicer4-sb/Slicer-build/WrapSlicer4
 
*Program = /cmn/git/Slicer4-sb/Slicer-build/WrapSlicer4
 
*Working folder = /cmn/git/Slicer4-sb/Slicer-build
 
*Working folder = /cmn/git/Slicer4-sb/Slicer-build
 +
<br>
  
 +
<br>
 +
 +
[[File:codelite-settings-2.png|100px|thumb|left|alt text]]
 
Under Settings->Debugger
 
Under Settings->Debugger
 
*"Enter here any commands passed to debugger on startup:"  
 
*"Enter here any commands passed to debugger on startup:"  
 
<pre>
 
<pre>
set exec-wrapper /cmn/git/Slicer4-sb/Slicer-build/Slicer
+
set exec-wrapper /cmn/git/Slicer4-sb/Slicer-build/WrapSlicer
 
exec-file /cmn/git/Slicer4-sb/Slicer-build/bin/SlicerQT-real
 
exec-file /cmn/git/Slicer4-sb/Slicer-build/bin/SlicerQT-real
 
</pre>
 
</pre>

Latest revision as of 07:58, 14 June 2013

Home < Documentation < Nightly < Developers < Tutorials < Debug Instructions < CodeLite


For the latest Slicer documentation, visit the read-the-docs.


CodeLite is a relatively lightweight, cross-platform IDE

Configure build

Right-click on project name and select Settings, then Customize

  • Enable Custom Build: check
  • Working Directory: Enter path to Slicer-build, for example /cmn/git/Slicer4-sb/Slicer-build
  • For target "Build": Enter "make"

To configure the binary for the Run command, set Program=Slicer-build/Slicer under the General tab.

Configure debugger

This requires the use of a wrapper script, as detailed here

After setting up the wrapper script ("WrapSlicer4" below), change the following options:

alt text

Under Settings->General:

  • Program = /cmn/git/Slicer4-sb/Slicer-build/WrapSlicer4
  • Working folder = /cmn/git/Slicer4-sb/Slicer-build



alt text

Under Settings->Debugger

  • "Enter here any commands passed to debugger on startup:"
set exec-wrapper /cmn/git/Slicer4-sb/Slicer-build/WrapSlicer
exec-file /cmn/git/Slicer4-sb/Slicer-build/bin/SlicerQT-real