Simplify debug node message processing.

Make processing more consistent irrespective of complete flag.
Avoid processing when node is inactive.
Avoid duplicate code.
Merge pull request #306 from hindessm/simplify-debug-node

Simplify debug node message processing.