Use of the HANG command

CachéQuality release 
1.0.0
Id 
OS0020
Rule type 
Severity 

Blocker

Blocker
SQALE characteristic 
  • Reliability
    • Instruction
Tags 
probable-bug
Remediation function 
Constant/issue
Remediation cost 
10min

It is customary to use the HANG command so that the debugger can attach to the running process when debugging code.

However, it frequently occurs that this extra statement, which is there only for debugging purposes, is not removed before the code is commited.

Please check that this usage of HANG is legitimate; if this is the case, mark this issue as a false positive.

More generally, even if the use is legitimate, you may want to rethink the code so as to avoid using this command altogether.