../pvss.htm menu.gif basics.gif

Selecting a script, library or thread

A manager can run several CTRL scripts at once, and there can also be several threads per active script. In the Debugger you can only specify one script that you want to investigate, and you can only deal with one thread at a time within the selected script.

Click on "Scripts" to see which scripts are detected by the manager being debugged.

 

Figure: CTRL Debugger with script list of the UI_1 manager.

CTRL_Debuggerneu-6.gif

 

IconHow to select a script:

  1. Click on "Scripts" in the button bar - all scripts in the current manager are displayed in the Info window on the right.

  2. Double-click on a line beginning "ScriptId:..." to select the script - the source code for this script is then displayed in the Source window.  

IconNote

If the selected line also contains information on the current thread, then this thread will also be selected automatically.

IconHow to select a thread:

  1. Click on "Info Script" to see what threads a selected script contains.

  2. The result might look as follows in the Info window:

ScriptId: 0; current thread: 0;test.ctl
ThreadId: 0
function: main

In this example a thread with the number 0 is currently running.

  1. Double-click on the line "ThreadId: 0" to select this thread.

IconNote

To see which script and which thread is currently selected, click on the "Current" button.

IconHow to select CTRL libraries:

 

1. Click on "Other Info" and select Libs.

2. Double-click on the appropriate line in the Info window to display the source code of the CTRL library.

 

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved