Question Davi Massaru Teixeira Muta · Apr 24, 2024

terminal attached to the JOB

Is it possible to start a terminal attached to a process (JOB)?

For example, I have a 548 process being debugged by VSCODE.

I would like to start a terminal, attached to the process to check process global values ​​by running the command "zw ^||MYGLOBAL"

Product version: IRIS 2020.3

Comments

Robert Cemper · Apr 24, 2024

From Terminal in namespace %SYS you can run

  • DO ^JOBEXAM
  • select your job by list of PID
  • Job# NSpace  Routine        Commands   Globals State PID      Current device
       23 USER    shell               42564READ17060    |TRM|:|17060
    Namespace:          USER                     SessionID:
    Routine:            shell
    Open Devices:       |TRM|:|17060*
    Mem Lim/Peak/Curr:  256M/154K/116K           In Trans:      No
    Priority:           8                        Info:
    User Name:          UnknownUser
    Roles/EscalatedRoles:%All/None
    OS User Name:       cemper                   EXE Name:
    Client Node Name:   TRM:                     IP Address:    127.0.0.1
    Location:                                    PrivGblBlks:   3
    Last reference:     ||RCC(5)
     
    Current line:
     
    Entry Process     X#   S# Flg Item Locked
    
    (V)ariable, (L)ocks, (S)tack, (P)rocess Private Globals, (Q)uit =>  P
  • and can see  PPG
    Process Private Global (?): RCC
    ^||RCC(1)=1
    ^||RCC(2)=2
    ^||RCC(3)=3
    ^||RCC(4)=4
    ^||RCC(5)=5
     
    Process Private Global (?):

     

0
Davi Massaru Teixeira Muta  Apr 24, 2024 to Robert Cemper

Hi @Robert Cemper !

In reality I would like a terminal attached to the process I am debugging in vscode.
In STUDIO, when debugging a process, the output terminal is attached to the debugged process, where it makes it possible to run more complex commands such as ZW / SET.

already in VSCODE, I am having to include complex commands in XECUTE

for example:

0