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

Improve debugging interface #305

Open
cornerman opened this issue May 8, 2019 · 3 comments
Open

Improve debugging interface #305

cornerman opened this issue May 8, 2019 · 3 comments

Comments

@cornerman
Copy link
Member

We have OutwatchTracing, but we should improve on the debugging capabilities. We want to be able to hook a function into the outwatch patching process, such that you can measure the time it takes to build the virtual dom and how much time a snabbdom patch process takes.

We might need some global variable like OutwatchTracing.debugEnabled = true to not have any overhead in production from the debugging code.

@cornerman cornerman added this to the 1.0 milestone May 8, 2019
@fdietze
Copy link
Member

fdietze commented May 9, 2019

And maybe macro-generated source-code positions (Filename:Line) that get written as attributes into the dom (only enabled in fastOptJS). This allows to see the sourcecode position where the element comes from.

@cornerman
Copy link
Member Author

Would be cool to inject an error reporter at the OutWatch.render* method - instead of the global OutwatchTracing.

@fdietze
Copy link
Member

fdietze commented Apr 18, 2022

If in fastOptJS, add an attribute to every tag in the vdom:

Like this: <div sc="Table.scala:152" ... >

@fdietze fdietze removed this from the 1.0 milestone Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants