GithubHelp home page GithubHelp logo

Comments (5)

yyx990803 avatar yyx990803 commented on May 5, 2024

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.

tiye avatar tiye commented on May 5, 2024

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.

jcaxmacher avatar jcaxmacher commented on May 5, 2024

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.

ayamflow avatar ayamflow commented on May 5, 2024

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.

tiye avatar tiye commented on May 5, 2024

Thanks. So prefering to reading source code and closing this issue.

from discussion.

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.