Comments (5)
It could take time from you to isolate your problems in a jsFiddle, but it could take more time from me to identify your problems by just looking at descriptions instead of code.
For general debugging, use the development version and set Vue.config('debug', true)
, which prints a bunch of compilation information. Then, if you are having problem with a directive, you can try to locate the source code of that directive and make break points in Chrome dev tools. But basically you need to sort of understand how Vue works to be able to identify bugs.
The first problem is most likely due to using v-with
with a computed property, which is an edge case which has not been thoroughly tested and is not recommended.
from discussion.
I'd like to talk about only debugging skills in this issue. And as find details on specific problems with new skills I leant I'll post new issue then.
So in order to debug in Vue, understanding the code is necessary now..
from discussion.
Vue.js is a pretty new library, so the best way to find out if there is a
bug in your code or Vue.js itself is to provide a working example in
JSFiddle. Isolating and reproducing your problem in JSFiddle will help you
learn how to debug any library.
On Thu, May 8, 2014 at 11:04 AM, JiyinYiyong 题叶 [email protected]:
I'd like to talk about only debugging skills in this issue. And as find
details on specific problems I'll post new issue then.
So in order to debug in Vue, understanding the code is necessary now..—
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-42560944
.
from discussion.
Like all libraries, you have to use it some time to get around some of the common issues.
An helpful tip is to consider everything asynchronous in your app. An error can be raised because the array your are v-repeating is not here yet for instance.
You can also read some of the source of Vue - some parts are really explicit. For the rest, @yyx990803's comment is gold, DevTools + debug mode ftw.
from discussion.
Thanks. So prefering to reading source code and closing this issue.
from discussion.
Related Issues (20)
- Use ||(or) in v-if (with nuxt js)
- Instantiate a copy of a component directly in that component HOT 1
- Call pre-defined javascript method on vue js event
- What about js-data.io?
- How to make vue bind to, or work with, html in properties
- Convert VueJS 1 to VueJS 2 HOT 2
- Third Party Libraries - Make non reactive?
- why v-switch not included in vuejs and what the alternative way HOT 1
- Use raw html inside v-bind
- iOS event bound using addEventListener is not triggering
- How to validate when blur a component.
- Google is not defined HOT 2
- vuejs can not find method or variable inside a callback function HOT 2
- Thousands of rows performance HOT 1
- how to pass Header + Body in POST api using Vue JS-axios HOT 4
- Conditional rendering and child component
- Fetch the value of element dynamically
- Vue breaks DataTables and Pace JS
- Bootstrap4 tag b-form-input has problem with @blur
- Invalid prop: Expected `Basic type`, got Nulll.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discussion.