Fix input validation for monitor and debug command line APIs
Fix test for adding an existing breakpoint

Note that == binds harder than &.
Avoid NPE