Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finding the method called from a UI action #1688

Open
rickmcgeer opened this issue Dec 11, 2024 · 2 comments
Open

Finding the method called from a UI action #1688

rickmcgeer opened this issue Dec 11, 2024 · 2 comments
Labels
💬 ideas welcome For feature ideas where more input on design decisions and conrete direction are warranted. 📟 support inquiry Questions that can be answered without changing code

Comments

@rickmcgeer
Copy link
Collaborator

rickmcgeer commented Dec 11, 2024

What would you like to achieve?
When I was trying to fix engageLively/galyleo-dashboard#202, I had to figure out what routine was drawing the Halo in response to a ctrl-click. Eventually I figured it out by putting a debugger; statement in the Halo initializer and tracing the call stack, but there has to be a better way.

@rickmcgeer rickmcgeer added the 📟 support inquiry Questions that can be answered without changing code label Dec 11, 2024
@merryman merryman added the 💬 ideas welcome For feature ideas where more input on design decisions and conrete direction are warranted. label Dec 11, 2024
@linusha
Copy link
Contributor

linusha commented Dec 11, 2024

Whether or not this is better might be subjective, but what I like to do in these cases is utilizing the profiler tool of the browser dev tools. Start a recording, do what you want to learn more about, stop the recording. Lively does a lot of stuff under the hood each time the mouse is moved etc, so it pays of to be quite fast here.
Afterwards, you can see all function calls that were executed during your recording, and at least the chrome profiler also gives you a kind of "screen video" that allows you to map the timeline to visuals.
That way, you can easily find out what happened exactly when the halo appeared.

@merryman
Copy link
Member

merryman commented Dec 16, 2024

Agree with the solution of @linusha. Also once source maps land, this will be even more accessible. As to something that works within lively itself, we would need more powerful runtime inspection such as the one enabled by a lively debugger via nw.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 ideas welcome For feature ideas where more input on design decisions and conrete direction are warranted. 📟 support inquiry Questions that can be answered without changing code
Projects
None yet
Development

No branches or pull requests

3 participants