XHTML: Log context elements id for model troubleshoot

In capella 1.4.0 I’ve faced many situations where XHTML generation failed because the model had some inconsistency.
What are the good practices for finding these inconsistencies ?

  • Model detachment show unresolved references (but that’s not all)
  • some validation rules ?
  • Would it be possible to add, as log debug message in XHTML plugin, the id of the context element of the generation ?
    ** If this not done yet, how can I do this myself (is XHTML source and Capella studio enough ?)
    Thank you

Do you have any error log or error message from the HTML generation to be analyzed?