You can find how to install and use ‘The X Ray Tool’ here. Below you can find pitfalls you may face and how to deal with them.
When you click on a component it is not opened in a new window but you download html. That happened because of Content disposition filter.
Find Apache Sling Content Disposition Filter
Disable Enable Content Disposition for all paths.
If you faced such picture in you context hub code:
That mean that you have The X Ray Tool enabled.
To fix this go to:
Find ‘Track Sling Include Processing’ bundle
Done, now you can check context hub js.