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

Extend debug mode to help find subtle errors during development #5832

Closed
Brimstedt opened this issue Jun 6, 2017 · 2 comments
Closed

Extend debug mode to help find subtle errors during development #5832

Brimstedt opened this issue Jun 6, 2017 · 2 comments

Comments

@Brimstedt
Copy link

What problem does this feature solve?

To help developers not get stuck on hard to catch or non apparent bugs, it would be neat if debug mode could check:

  • Do we have data properties with same name as a method (to avoid confusing "xxx is not a method)
  • Did an object loose reactivity on some property (i.e. did a non getter/setter property on any of the managed objects appear)

Probably there are other helpers to be added as well.

What does the proposed API look like?

There is already an API to turn on debug mode.

Vue.config.debug = true

@yyx990803
Copy link
Member

All warnings are on by default in development mode.

There's no way to detect a newly added non-reactive property in ES5.

@Brimstedt
Copy link
Author

Thanks for reviewing my feature request!

To bad about the reactivity detection.

What about warning when there is shadowing? I.e. properties, getters or methods with the same names?

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