"
Supported by

Debugging with baby steps

When you debug you use F5 key to move to the next statement (or go inside a sub-routine). But imagine an IF with multiple conditions:


IF A = 1 AND B = 2 AND C = 3.
  WRITE 'I like the word glauc'.
ENDIF.

When you debug through that IF using F5 and one of the expressions is false you’ll step out of the IF without knowing which of the three was false.

But the new debugger has a new very neat functionality which can help you to better understand what happened there.

It’s called “step size” and allows you to change the way the debug moves forward. You can switch between moving one statement at a time as you’ve always done or moving horizontally one expression at a time. This allows you to easily find out which of the three expressions failed.

stepsize

Thank you Sérgio Fraga for the tip.

Photo: Denise P.S. via VisualHunt / CC BY-ND

Greetings from Abapinho.

2 comentários a “Debugging with baby steps”

  1. Lucas Gabriel Oliveira de Almeida Diz:

    Muito boa a dica. ^^

  2. Gustavo Mourão Diz:

    Muito bom!

    Obrigado pela dica!.

Deixe um comentário


About Abapinho
Abapinho runs on WordPress
Articles (RSS) e Comments (RSS).