Difference between revisions of "Slicer3:Execution Model Documentation:Debugging"

From NAMIC Wiki
Jump to: navigation, search
m (Text replacement - "http://www.slicer.org/slicerWiki/index.php/" to "https://www.slicer.org/wiki/")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Hints ==
+
<big>'''Note:''' We are migrating this content to the slicer.org domain - <font color="orange">The newer page is [https://www.slicer.org/wiki/Slicer3:Execution_Model_Documentation:Debugging  here]</font></big>a
 
 
You can use standard debuggers but you need to be sure that you have your path set correctly.  You can use slicer3's launcher to set up the environment for you.  See [[User:Pieper#Launching_visual_studio_for_slicer3_debugging | some windows examples]]. 
 
 
 
Set the command line module (LinearRegistration in this example) to be the Start Up project for visual studio.  You can cut and paste the arguments to the module from the log window (red X icon in lower left of slicer).
 
 
 
The command line may look something like the following:
 
 
 
C:/pieper/bwh/slicer3/latest/Slicer3-build/bin/Debug/../../lib/Slicer3/Plugins/Debug/LinearRegistration.exe --histogrambins 30 --spatialsamples 10000 --iterations 1000,1000,500,200 --learningrate 0.01,0.005,0.0005,0.0002 --translationscale 100 c:/Documents and Settings/Administrator/Local Settings/Temp/Slicer3/EHGE_vtkMRMLScalarVolumeNodeB.nrrd c:/Documents and Settings/Administrator/Local Settings/Temp/Slicer3/EHGE_vtkMRMLScalarVolumeNodeD.nrrd c:/Documents and Settings/Administrator/Local Settings/Temp/Slicer3/EHGE_vtkMRMLScalarVolumeNodeE.nrrd
 
 
 
(note you may need to put quotes around file names that have spaces).
 
 
 
By default slicer will delete the temp files after the module completes.  To disable this, use a command like this in the Tcl console:
 
 
 
[$::slicer3::CommandLineModuleGUI_Linear_registration GetLogic] DeleteTemporaryFilesOff
 

Latest revision as of 17:45, 10 July 2017

Home < Slicer3:Execution Model Documentation:Debugging

Note: We are migrating this content to the slicer.org domain - The newer page is herea