Prévia do material em texto
TUTORIAL DUBUG TOOL (COM CONTAINER) COBOL CHAMADO P/UM PROGRAMA NATURAL Acessar o DESENV: Acessar o DEBUG TOOL: Clicar em F5 – Create – Gerar novo programa de DEBUG: Efetuar: Dar nome ao Profile Preencher “*” os campos: Transaction, Program, Applid, Userid, Termid e Netname No campo Compile Unit, inserir o nome do programa <<Enter>> Após o <<Enter>>, verificar a apresentação de uma mensagem no rodapé da Tela, correspondente a criação da Profile: Clicar em F12, para retornar Na linha de Comando, digitar “A”, para ativar o debug do programa parametrizado: <<Enter>> Confirmar com <<Enter>> as opções apresentadas: 7.1 Não alterar as opções apresentadas. Apresenta a seguinte tela: Clicar <<F3>>, para sair mantendo a configuração. Digitar ‘LOGO’, para sair da Transação: Pressione F5 para finalizar o encerramento da parametrização do DEBUG TOOL: Acessar o ROSCOE: Chamar o programa Cobol, que será debugado: Comentar as linhas do GET, indicadas abaixo: Salvar o programa e depois Compilá-lo. Acessar o DESENV, novamente: Acessar o NATURAL: Chamar o programa NATURAL que irá executar o programa COBOL: Executar o programa: RUN Preencher a entrada de dados, se houver. Execução do DEBUG TOOL: FIM... Principais comandos do Debug Tool WORK WITH WINDOWS AND SOURCE TRABALHAR COM JANELAS E FONTE ZOOM or Z Expand the source window to the full screen, or reduce an expanded window Expandir a janela de origem para a tela cheia, ou reduzir uma janela expandida ZOOM(with a cursor selected border location) Expand the cursor selected window Expandir a janela do cursor selecionado POS 509 Position the source window to statement number 509 Posicione a janela de origem para instrução número 509 QUALIFY RESET or QUA RES Position the source window to the current statement Posicione a janela de origem para a instrução atual FIND‘text’ or F ‘text’ Find the next occurrence of text in the source window Localizar a próxima ocorrência do texto na janela de origem F5 Function key: repeat the last find command Tecla de função: repetir o último comando find RUN THE PROGRAM EXECUTE O PROGRAMA STEP Run one statement Executar uma instrução or STEP INTO F2 Function key: same as STEP Tecla de função: mesmo que o passo STEP 25 Run 25 statements, starting with the current statement, one at a time with step animation Execute 25 declarações, começando com a instrução atual, um de cada vez com a animação passo GO Run the program, starting with the current statement, until the next breakpoint or the end of the application Executar o programa, começando com a instrução corrente, até que o próximo ponto de interrupção ou o fim da aplicação F2 Function key: same as GO command Tecla de função: o mesmo que o comando GO RUNTO 630 Run the program starting with the current statement, until the next time it reaches statement 630 (or reaches o breakpoint or the end of the application) Execute o programa que começa com a instrução atual, até a próxima vez que ele atinja instrução 630 (ou chega a um ponto de interrupção ou o fim da aplicação) R Line command: same as a RUNTO command for the selected statement Linha de Comando: mesmo que um comando RUNTO para a instrução selecionada JUMPTO 952 Jump to statement 952. Do not execute the current statement or any other statements. The program will be pausedat statement 952. Ir para instrução 952. Não executar a instrução atual ou quaisquer outras declarações. O programa será comunicado pausedat 952. GOTO 952 Same as a combination of JUMPTO 952 followed by a GO command O mesmo que uma combinação de JUMPTO 952 seguido por um comando GO COMMANDS FOR WORKING WITH BREAKPOINTS COMANDOS PARA TRABALHAR COM BREAKPOINTS LIST AT Display a list of all breakpoints in the log Exibir uma lista de todos os pontos de interrupção no log FINDBP Find the next statement breakpoint and position the source window to it Encontre o ponto de interrupção seguinte instrução e posicionar a janela de origem para ele CLEAR AT Clear all breakpoints in the current enclave Limpar tudo breakpoints no enclave atual SET AND CLEAR STATEMENT BREAKPOINTS DEFINIR E BREAKPOINTS DECLARAÇÃO CLARA A or AT Line command:Set o breakpoint at the selected statement Comando de linha: Defina um ponto de interrupção na instrução selecionada C Line command:clear the breakpoint at the selected statement Comando de linha: limpar o ponto de interrupção na instrução selecionada F6 (with a cursor selected statement) Function key:Set o breakpoint at the cursor selected statement. If o breakpoint already exists at the statement, clear it. Tecla de função: Definir um ponto de interrupção na instrução cursor selecionado. Se um ponto de interrupção já existe no comunicado, limpá-la. AT 452 Set o breakpoint at statement 452 Defina um ponto de interrupção na instrução 452 AT FROM 99 452 Set o breakpoint that will trigger starting with the 99thtime that statement 452 is reached Defina um ponto de interrupção que irá acionar a começar pela 99thtime que a instrução 452 é atingido CLEAR AT 452 Clear the statement breakpoint at statement 452 Desmarque o breakpoint instrução na instrução 452 or CL AT 452 D Line command: disable the breakpoint at the selected statement (butdo not clear it) Comando de linha: desativar o ponto de interrupção na instrução selecionada (não butdo claro que) E Line command: enable the disabled breakpoint at the selected statement Comando de linha: permitir que o ponto de interrupção desativado na instrução selecionada AT * Set a special breakpoint that will stop at all statements Defina um ponto de interrupção especial que vai parar em todas as declarações CLEAR AT * Clear the special AT *breakpoint Desmarque a especial AT * breakpoint or CL AT * SET AND CLEAR CHANGE (WATCH) BREAKPOINTS CONJUNTO DE ALTERAÇÕES E CLARA (RELÓGIO) BREAKPOINTS AT CHANGE var-name Set o breakpoint that will trigger when variable var-name changes Defina um ponto de interrupção que irá desencadear mudanças var-nome quando variáveis or AT CHA var-name CLEAR AT CHANGE variable-name Clear the change breakpoint for variable-name Desmarque o breakpoint da variável or CLE AT CHA variable-name SET AND CLEAR PROGRAM ENTRY AND EXIT BREAKPOINTS SETA E LIMPA NO PROGRAMAS AS ENTRADAS E SAÍDA DOS BREAKPOINTS AT ENTRY program-name Set o breakpoint that will trigger when program (compile unit) program-name is entered Defina o ponto de interrupção que será desencadeada quando programa (unidade compilar) programa de nome é inserido CLEAR AT ENTRY program-name Clear the entry breakpoint for program-name Desmarque a ponto de interrupção de entrada para o programa-name AT ENTRY* Set a special breakpoint that will trigger at the entry of all programs Defina um ponto de interrupção especial que irá acionar na entrada de todos os programas CLEAR AT Clear the special AT ENTRY * breakpoint Desmarque a especial AT ENTRY * breakpoint ENTRY * AT EXIT program-name Set o breakpoint that will trigger when program (compile unit) program-name is exited Defina o ponto de interrupção que será desencadeada quando programa (compilar unidade) nome-programa é encerrado CLEAR AT EXIT program-name Clear the exit breakpoint for program-name Desmarque a ponto de interrupção de saída para o programa-name MAKE BREAKPOINTS CONDITIONALMAKE BREAKPOINTS CONDITIONAL To make o breakpoint conditional, code WHEN and a condition. Examples: Para fazer com que o ponto de interrupção condicional, código quando e uma condição. Exemplos: AT 502 WHEN CUSTID = ‘77409’ Set o breakpoint that will trigger at statement 502 if the condition is true when the statement is reached Defina o ponto de interrupção que irá acionar a declaração 502, se a condição for verdadeira quando a instrução é atingido AT CHANGE Set o breakpoint that will trigger when variable CUSTID changes if the condition is true when it changes Defina o ponto de interrupção que irá desencadear mudanças CUSTID quando variáveis se a condição é verdade quando se muda CUSTID WHEN CUSTID = ‘77409’ AT CHANGE Set a breakpoint that will trigger when variable CUST-ID changes if the con-dition is true when it changes Defina um ponto de interrupção que irá desencadear mudanças CUST-ID Quando a variável se a con-dição é verdade quando se muda CUSTID WHEN BAL > 999 LIST VARIABLES IN THE LOG VARIÁVEIS LISTA NO LOG L Line command in the source window: display all variables referenced by the selected line in the log Linha de comando na janela de origem: mostrar todas as variáveis referenciadas pela linha selecionada no log Ln (such as L1, L2, …) Line command in the source window: display the nth variable referenced by the selected line in the log Linha de comando na janela de origem: mostra a variável enésima referenciado pela linha selecionada no log F4 (with a cursor selected variable in the source window) Function key: display the cursor selected variable in the log Tecla de função: exibir a variável selecionada cursor no log LIST variable-name Display variable-name in the log Mostrar variável no log LIST TITLED WSS Display all variables in the log from COBOL working-storage, file, or linkage section Mostrar todas as variáveis no log de COBOL working-storage, arquivo ou seção de vinculação or LIST TITLED FS or LIST TITLED LS MONITOR VARIABLES MONITOR DE VARIAVEIS SET AUTO ON Turn on the automonitor. Variables referenced by the current statement display in the monitor window automatically. Ligue o automonitor. Variáveis referenciadas pela exibição declaração atual na janela do monitor automaticamente. SET AUTO ON BOTH Turn on the automonitor. Variables referenced by both the current statement and previously displayed statement s displayin the monitor window automatically. This shows results automatically while stepping. Ligue o automonitor. Variáveis referenciados por tanto a declaração atual e anteriormente exibido declarações exibir na janela do monitor. Isso mostra resultados automaticamente ao pisar. SET AUTO ON LOG Turn on the automonitor. In addition to displaying variables in the monitor window, they are also displayed in the log. This automatically traces variable values referenced by every statement. Ligue o automonitor. Além de exibir variáveis na janela do monitor, eles também são exibidos no log. Esta traça automaticamente valores de variáveis referenciados por cada declaração. or SET AUTO ON BOTH LOG M Line command in the source window: add all variables referenced by the selected line to the monitor Linha de comando na janela de origem: adicionar todas as variáveis referenciadas pela linha selecionada para o monitor Mn (such as M1, M2, …) Line command in the source window: add the nth variable referenced by the selected line to the monitor Linha de comando na janela de origem: adicionar a variável enésima referenciado pela linha selecionada para o monitor MONITOR LIST var-name Add variable-name to the monitor Adicionar variável para o monitor or MON LIST var-name MON LIST TITLED WSS Add all variables to the monitor from COBOL working-storage, file, or linkage section Adicione todas as variáveis para o monitor de COBOL-armazenamento de trabalho, arquivo ou seção de vinculação or MON LIST TI FS or MON LIST TI LS C Line command in the monitor window: clear (remove) the selected item Linha de comando na janela do monitor: clear (remover) o item selecionado H Line command in the monitor window: display the value of the selected item in hexadecimal format Linha de comando na janela do monitor: exibir o valor do item selecionado em formato hexadecimal D Line command in the monitor window: display the selected value in default format Linha de comando na janela do monitor: exibir o valor selecionado no formato padrão CLEAR MONITOR Clear all items from the monitor window Limpar todos os itens da janela do monitor CHANGE VALUES OF VARIABLES MUDANÇA DE VALORES DAS VARIÁVEIS Overtype the value of a variable in the monitor window to change the value Overtype o valor de uma variável na janela do monitor para alterar o valor MOVE 987 TO varx Change the value of variables in COBOL programs Altere o valor de variáveis em programas COBOL MOVE ‘ZYX’ TO var varx = 987 Change the value of variables in PLI, C/C++, and assembler programs Altere o valor de variáveis em PLI, C / C ++ e programas assembler var =‘ZYX’ WORK WITH SUBPROGRAMS TRABALHANDO COM SUB-PROGRAMAS STEP When the current statement calls or runs a sub-program, procedure, or function, step into it. (The sub must be compiled for debugging) Quando a declaração atual chama ou corre um sub-programa, procedimento ou função, passo para ele. (O sub deve ser compilado para depuração) or STEP INTO STEP OVER When the current statement calls or runs a sub-program, procedure, or function, run it but do not show it in thedebugger. Quando a declaração atual chama ou corre um sub-programa, procedimento ou função, executá-lo, mas não mostrá-lo no depurador. STEP RETURN Run to the next program return. This is a quick way to run to the end of a sub-program. Executar o próximo retorno programa. Este é um modo rápido de executar para o final de um sub-programa. LOAD progname Load program progname. Display it in the source window if it is available. Carrega progname. Exibi-lo na janela de origem, se estiver disponível. QUALIFY PROGRAM progname Display the source of progname in the source window Mostrar a fonte de progname na janela de origem QUALIFY RESET Position the source window to the current program and current statement Posicione a janela de origem para o programa atual e execução atual or QU RES HOW TO BYPASS AN ABEND CONDITION COMO IGNORAR UMA CONDIÇÃO ABEND If an abend occurs, you are notified with a message in the log. If the program is stopped at an abend, and you STEP or GO, the application will abend. To continue without abending: Se ocorrer um abend, você será notificado com uma mensagem no log. Se o programa for parado em um abend, e você pisar ou GO, o abend vontade aplicação. Para continuar sem abendou: GO BYPASS This command bypasses the statement where the abend occurred, passes control to the next logical statement, and stops there. Este comando ignora a declaração em que o abend ocorreu, passa o controle para a próxima instrução lógica, e pára por aí. LANGX file Debugging information for OS/VS COBOL, VS COBOL II, or Assembler As informações de depuração para OS / VS COBOL, VS COBOL II, ou Assembler SaveSettings file Allows saving/restoring ofSetTINGS between debugging executions. The default naming convention is user-id.DBGTOOL.SAVESETS, but may be customized on each system. Permite salvar / restaurar ofSetTINGS entre as execuções de depuração. A convenção de nomenclatura padrãoé usuário id.DBGTOOL.SAVESETS-, mas pode ser personalizado em cada sistema. File attributes: sequential, RECFM=VB, LRECL=3204 or more, BLKSIZE=any Atributos de arquivo: seqüencial, RECFM = VB, LRECL = 3204 ou mais, BLKSIZE = qualquer Save breakpoints and monitors file Allows saving/restoring of breakpoints and MONITOR values between debugging sessions. The default naming convention is user-id.DBGTOOL.SAVEBPS, but may be customized on each system. Permite salvar / restauração de pontos de parada e valores MONITOR entre sessões de depuração. A convenção de nomenclatura padrão é user-id.DBGTOOL.SAVEBPS, mas pode ser personalizado em cada sistema. File attributes: PDS or PDSE (Library), RECFM=VB, LRECL=3204 or more, BLKSIZE=any Atributos de arquivo: PDS ou PDSE (Biblioteca), RECFM = VB, LRECL = 3204 ou mais, BLKSIZE = qualquer SET SAVESetTINGS AUTO Automatically save currentSettings to the saveSettings dataSet when the debugger ends Salvar automaticamente currentSettings ao conjunto de dados SaveSettings quando termina o depurador SET SAVE BPS AUTO Automatically save current breakpoints to the save breakpoints and monitors dataSet when the debugger ends Automaticamente salvar breakpoints atuais para o salvar breakpoints e monitores dataSet quando termina o depurador SET SAVE MONITORS AUTO Automatically save current monitors to the save breakpoints and monitors dataSet when the debugger ends Salvar automaticamente monitores atuais para o salvar breakpoints e monitores dataSet quando termina o depurador SET RESTORESetTINGS AUTO Automatically restoreSettings from the saveSettings dataSet when the debugger starts RestoreSettings automaticamente do SaveSettings dataSet quando o depurador é iniciado SET RESTORE BPS AUTO Automatically restore breakpoints from the save breakpoints and monitors dataSet when the debugger starts Restaurar automaticamente breakpoints do salvar breakpoints e monitores dataSet quando o depurador é iniciado SET RESTORE MONITORS AUTO Automatically restore monitors from the save breakpoints and monitors dataSet when the debugger starts Restaurar automaticamente monitores do salvar breakpoints e monitores dataSet quando o depurador é iniciado END PROGRAM TESTING FIM DE TESTE DE PROGRAMA QUIT Ends debugging. Prompts with a “Are you sure…?” message. If accepted, terminates the program. Termina depuração. Avisa com uma mensagem "Você tem certeza ...?". Se aceito, termina o programa. QQ Same as QUIT but without a prompt O mesmo que sair, mas sem um prompt QUIT DEBUG Ends debugging but the program continues to run from the current statement Termina a depuração, mas o programa continua a correr a partir da declaração atual QUIT DEBUG TASK Used in CICS only. Ends debugging but the program continues to run. The DTCN or CADP profile remains active. Utilizado em apenas CICS. Termina a depuração, mas o programa continua a ser executado. O perfil DTCN ou CDAP permanece ativa. QUIT ABEND Ends debugging and terminates the program with a forced abend. Termina depuração e termina o programa com um abend forçado. PLAYBACK (STEP BACKWARD IN A PROGRAM) REPRODUÇÃO (PASSO PARA TRÁS EM UM PROGRAMA) PLAYBACK ENABLE Turn on the playback recorder. Consider the PLAYBACK ENABLE near the beginning of a program. Ligue o gravador de reprodução. Considere o REPRODUÇÃO PERMITE perto do início de um programa. PLAYBACK START Enter playback mode. The PLAYBACK ENABLE command must have been entered previously. STEP commands will step backward. Entre no modo de reprodução. O comando Ativação de reprodução deve ter sido introduzido previamente. Comandos etapa irá recuar. PLAYBACK FORWARD Set the direction of STEP and RUNTO commands to forward Defina a direção do STEP e RUNTO comandos para avançar PLAYBACK BACKWARD Set the direction of STEP and RUNTO commands to backward Defina a direção do STEP e comandos RUNTO para trás PLAYBACK STOP Exit playback mode, and return to normal debugging mode. Modo de reprodução Sair e voltar ao modo de depuração normal. The playback recorder remains on. O gravador de reprodução permanece ligado. PLAYBACK DISABLE Turn the playback recorder off Ligue o gravador de reprodução off FILES THAT CAN BE USED BY THE DEBUGGER, AND COMMANDS TO USE THEM OS ARQUIVOS QUE PODEM SER USADOS PELO DEPURADOR E COMANDOS PARA USÁ-LOS Preferences File A file that contains a series of Debug Tool commands (a script) that runs automatically when the debugger starts. It is typically used to customize debuggingSettings and the environment for the developer. Um arquivo que contém uma série de Debug ferramenta de comandos (um script) que é executado automaticamente quando o depurador é iniciado. Ele é geralmente usado para personalizar debuggingSettings e do meio ambiente para o desenvolvedor. (DD name INSPPREF) Command File A file that contains a series of Debug Tool commands (a script) that runs automatically when the debugger starts. It runs after the preferences file completes, if there is one. It is typically used to run a series of commands to control execution of the test session and programs. Um arquivo que contém uma série de Debug ferramenta de comandos (um script) que é executado automaticamente quando o depurador é iniciado. Ele é executado após o arquivo de preferências concluída, se houver. É normalmente utilizado para executar uma série de comandos para controlar a execução dos programas e sessão de teste. (DD name INSPCMDS) Log File A file where Debug Tool writes messages thatare written to the log window., such as results of various Debug Tool Commands. Um arquivo onde Debug ferramenta grava mensagens thatare escrito para a janela de log., Tais como resultados de vários comandos ferramenta de depuração. (DD name INSPLOG) SET LOG ON FILE file-name OLD Command that opens file-name of the log file. All log messages occurring after this command is issued are written to the file. Comando que abre arquivo-nome do arquivo de log. Todas as mensagens de log ocorridos após esse comando é emitido são gravadas no arquivo. USE file-name Command to run Debug Tool commands (a script) contained in the specified file. Comando para executar comandos Debug Tool (um script) contidos no arquivo especificado. FUNÇÕES PADRÕES KEYSETTINGS F1 / 13 HELP F2 / 14 STEP F3 / 15 END F4 / 16 LIST F5 / 17 FIND F6 / 18 AT/CLEAR F7 / 19 UP F8 / 20 DOWN F9 / 21 GO F10 / 22 ZOOM F11 / 23 ZOOM LOG F12 / 24 RETRIEVE