adobe-research / theseus

A pretty darn cool JavaScript debugger for Brackets
Other
1.34k stars 69 forks source link

Theseus disturbs Brackets' "Highlight selected HTML item" #39

Open marcelgerber opened 10 years ago

marcelgerber commented 10 years ago

Steps to repro:

  1. Open Getting Started\index.html
  2. Start Live Preview
  3. Set the cursor to the <img> tag
  4. Switch back to the browser and look at the image (screenshot)

Result: With (only) Theseus installed, the image looks just like before. Without Theseus (same settings), it has a blue highlighting.

CSS rules are highlighted correctly.

Env: Brackets development build 33 (but as far as I can remember this also in sprints before) Windows 8.1

marcelgerber commented 10 years ago

It seems that editor._codeMirror.findMarksAt(pos) at https://github.com/adobe/brackets/blob/master/src/language/HTMLInstrumentation.js#L143 gets wrong results when Theseus is enabled.

But I can't debug further - CodeMirror is too much for me!

marcelgerber commented 10 years ago

It disturbs Live HTML, too!

alltom commented 10 years ago

Just wrote to brackets-dev about one way to resolve this: have a separate Theseus button that works like the lightning bolt but enables Theseus.

marcelgerber commented 10 years ago

I'd like that idea.

pabloweinx commented 9 years ago

It still happens to me, did you get it work? I'm trying to supervive with a little trick: I've installed the "HTML Designer for Brackets" extension, and while you can debug the JS code in Live Preview, you can see and edit the HTML design in the DesignView or SplitView options from this extension...

alltom commented 9 years ago

No, sorry, I haven't developed this yet. :(