Synopsis:

set different [on|off|nostack]

Set to make sure next or step moves to a new position. If "on", "off", or "nostack" is not given, "on" is assumed.

A line can contain many possible stopping points. Inside a debugger, it is sometimes desirable to continue but stop only when the position next changes.

Setting different to on will cause each step or next command to stop at a different position.

Note though that the notion of different does take into account stack nesting.

See also:

step, and next which have suffixes + and -; the suffixes override this setting.