Giter VIP home page Giter VIP logo

Comments (8)

anagrius avatar anagrius commented on May 13, 2024 2

This is the main reason we don't use the debugger very much at Humio. What messages are sent is often more interesting that the model IMO.

We have a very complex application where messages are wrapped deeply in e.g. (ProjectPage (SettingsSection (DropDownMsg (...
With the current layout of the message list, we can only see (ProjectPage (SettingsSection ... and pretty much all messages in the list will be identical:

debugger

For us it would be a lot more relevant to see the end of the message ropdownMsg (Select 1)) than the start.

I suggest that we make split the right side of the debugger horizontally and make the top part contain the message. It should be expandable just like the model.

Mockup:

debugger-mock

from virtual-dom.

process-bot avatar process-bot commented on May 13, 2024

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

from virtual-dom.

rtfeldman avatar rtfeldman commented on May 13, 2024

One problem with the "click a message to see its full content" approach is that it doesn't let you scan messages to look for patterns or quickly find the one you're looking for. Instead you have to go through them one at a time.

Resizing is one way to address this.

Another would be to remove the height restriction, such that if they ran out of horizontal space their text could wrap around and the message would expand vertically to accommodate it. A downside of that approach is that if several consecutive messages wrap, it gets harder to spot patterns (such as "for some reason we keep alternating between SetDate and DatepickerMsg") because the beginnings and ends of the messages are no longer vertically adjacent.

from virtual-dom.

mrmurphy avatar mrmurphy commented on May 13, 2024

That's a good point, Richard. Maybe doing both would be helpful? Some messages can get pretty big, and it'd be good to be able to see what they contain in their entirety, but also being able to have an at-a-glance overview of the message patterns is important.

from virtual-dom.

evancz avatar evancz commented on May 13, 2024

Can you share some examples of particular messages you have? How long are they? What kind of values do they contain? What are the values you are interested in?

from virtual-dom.

prikhi avatar prikhi commented on May 13, 2024

Here's some messages from my apps:
https://github.com/prikhi/bodyweight-client/blob/master/src/Messages.elm
https://github.com/Southern-Exposure-Seed-Exchange/Order-Manager-Prototypes/blob/master/elm/src/Messages.elm
https://github.com/Southern-Exposure-Seed-Exchange/Order-Manager-Prototypes/blob/master/elm/src/Products/Messages.elm

I think the longest one looks like this:

RoutineFormChange (SectionFormMsg Int (SectionExerciseFormMsg Int (ChangeExercise Int ExerciseId)))

Although the one's with the most content are my Fetch-completed messages,
sometimes they have lists w/ a thousand elements or so.

It would be useful to have a search field that would filter the shown messages,
so I could enter something like SectionFormMsg 0 to get all the messages
related to the first section form.

If full messages were shown above the model, it would be nice to be able to hit
the up/down keys to scroll through the messages. Then I could keep an eye on
the full message while flipping through each message to find the one I want.
Hovering over shortened messages is OK, but it takes a second of hovering over
each message to see the text, which gets annoying fast.

Resizing the sidebar works for me as well, but I have the debugger open in a
large window so I'd be able to see my long messages as well, not sure of what
other people are doing.

Also, highlighting diffs between a message's updated model & the one before it
would make it much easier to deal with large models(should I make that a new
issue?).

from virtual-dom.

simonh1000 avatar simonh1000 commented on May 13, 2024

Same issue reported here https://github.com/elm-lang/core/issues/763#issuecomment-264674403 I certainly have some Messages that are nest at least 4 deep, and then some that contain a lot of json.

from virtual-dom.

evancz avatar evancz commented on May 13, 2024

Tracking in #98. Thanks for the report!

from virtual-dom.

Related Issues (20)

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.