Giter VIP home page Giter VIP logo

brackets-debugger's People

Contributors

denniskehrig avatar jasonsanjose avatar jdiehl avatar joelrbrandt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

brackets-debugger's Issues

JSON keys are regarded as variables

var foo = 42;
var bar = { foo: "hello" };

Hovering over foo: shows the value 42. If anything, "hello" should be shown (showing nothing would be appropriate, too)

require error with GotoAgent on load

Jonathan showed me all the new features in the debugger today -- very cool!

I tried to pull down the new version today (commit 6f11a50), but I get errors on launch (using master at the adobe/brackets@5247bf9224a commit).

Specifically, I get:

Uncaught Error: Module name 'LiveDevelopment/Agents/GotoAgent' has not been loaded yet for context: _

If I go back to bd63ffc it all works properly. But, none of the awesome new features are there. :-(

Any thoughts?

Moving breakpoints turns them into tracepoints

Example code:

    1: counter++;
    2: $("#countValue").text(counter);
    3: 
    4: test();
    5: test();

Setup

  1. Set breakpoint in line 2 and 5
  2. Run code - Chrome should pause in line 2 and 5

Scenario 1

  1. Place cursor at the end of line 2 and press Enter
  2. Run code - Chrome doesn't pause at all. Line 3 and 6 (previously 2 and 5) flash like tracepoints, though.

Scenario 2

  1. Place cursor at the end of line 3 and press Enter
  2. Run code - Chrome stops in line 2, but not anywhere else. Line 6 (previously 5) flashes like a tracepoint, though.

Re-enable compatibility with Brackets versions >=0.20.0

I intentionally broke compatibility with Brackets via the package.json engine property. It's now limited to <0.20.0 (before the CodeMirror v3 upgrade).

Once issue #44 and related issues are resolved we should update this compatibility.

Source element does not always appear in event list entry

For DOMContentLoaded, prefix appears after reloading Brackets (with auto-connect), shortly after the load event gets its prefix, despite DOMContentLoaded appearing a second earlier than load. It does not appear when just reloading the page in the browser (Command-Shift-R).

For click (via $("#countButton")[0].click() in DOMContentLoaded handler) the <button#countButton> rarely ever appears, but if it appears, then when reloading Brackets, not when reloading the page in the browser.

For load, the prefix reliably appears regardless of the reloading type.

Disconnecting and reconnecting seems to behave just like reloading the page in the browser, suggesting something not being properly resetted that is in a proper state only after first starting Brackets.

Automatically update hover popup

I.e. when already showing a value and a new trace for it comes in, update the value (think counters)
Or when hovering a variable before the surrounding function gets called, show a popup with the value as soon as its covered by a trace

Weird breakpoint behavior for empty lines

Example code:

Example code

1:
2: // init
3: $(function () { ... });

Good

  1. Click on line 1: breakpoint appears in line 3
  2. Run code: Chrome pauses in line 3
  3. Click on line 1 again: breakpoint disappears
  4. Run code: No pause

Bad

  1. Click on line 1: breakpoint appears in line 3
  2. Click on line 3: nothing happens (breakpoint should disappear)
  3. Run code: Chrome pauses in line 3
  4. Click on line 3: breakpoint disappears
  5. Run code: Chrome pauses in line 3 and breakpoint reappears (Chrome should not pause)
  6. Click twice on line 3: breakpoint disappears (run would make it reappear)
  7. Click line 1: nothing happens (breakpoint should appear)
  8. Run code: No pause

Timer events create questionable tree

The debugger now sets the instrumentation breakpoint "timerFired" which is triggered both by setTimeout and setInterval.
In the resulting tree the second tracepoint's trace is shown as a child of the first one's - I think it shouldn't be shown at all.

Code to test:

window.setTimeout(function ping() {
    console.log("ping");
}, 1000);

Can not install in Brackets sprint 27

Runtime error when competing install:

Uncaught TypeError: Cannot call method 'addMenuItem' of null 

This is due to adobe/brackets#4404. The extension init() is called twice once during the auto init (via ExtensionLoader) and again at APP_READY.

Breakpoint marker is sometimes off after editing document

A breakpoint in line X is generally in the column of the first non-whitespace character in line X, i.e. in a line with whitespace denoted by ".", code denoted by "+" and the cursor denoted by "|", Chrome would stop here:

....|++++

When editing the text like so (or anywhere after that):

....+
....+++

Chrome would stop in the same place:

....|+
....+++

When editing the text like so (or anywhere before that):

....
....++++

Chrome would move the breakpoint and stop there:

....
....|++++

CodeMirror's GutterMarker, however, will stay in the first line.
In fact, the gutter marker is only moved when inserting lines before the first character in the line with the gutter marker.

Also, the gutter marker is deleted when deleting the line break before the line it is in. Chrome will however then stop in the previous line. Chrome will only delete a breakpoint when both surrounding characters have been deleted.

[NEWBIE question] I can't get brackets-debugger to work.

Hi!
I am a newbie at the beginning of learning to code.
I was debugging code in Chrome Developer Tools but since it breaks connection with Brackets, I was looking for some alternative which would work with Live Preview. And here I am.
After installing extension (to user's directory directly cause linking from disabled didn't want to work for some reason), in my Brackets, console of the extension appears. In the console there is blue text: [object Object]. When I click on the gutter unfortunatelly nothing happens. There is no breakpoint. Could you please help me to get brackets-debugger to work.

Doesn't appear to work with Brackets Sprint 14

Just tried this with Brackets Sprint 14 and there seems to be a problem when launching a web page. The debugger UI all looks fine, but a couple of different web apps I tried seemed to hang on launch.

Let me know if you can't reproduce and I can post an example.

debugger doesn't re-install breakpoints when page reloads

Steps to reproduce:

  • Open a file in brackets and 'go live'
  • Set a breakpoint in JavaScript
  • Reload file in browser
  • Do something that should cause the breakpoint to get hit

Result:

  • Doesn't stop at breakpoint. Removing and re-adding breakpoint makes it work again.

Expected:

  • Stops at breakpoint

I think watching for a scriptParsed event from the debugger connection is the right way to go.

Wrong line highlighted with big files

I actually have not seen this, but it will happen now that we address the PREs directly for highlighting. For big documents, there will be fewer PREs than lines.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.