defconst after make-variable-buffer-local only sets the (local)
value of the variable in the buffer that is current at the time
of the call. edebug apparently needs the global value of
edebug-form-data to be set to nil. So the order of the
defconst/make-variable-buffer-local calls needs to be reversed,
or setq-default should be used instead of defconst.