1

I develop with VIM, and I am trying to find a way to use chrome breakpoints for my frontend Vue.js app. I'm also using nuxt to develop my app with Vue.

Has anyone been able to successfully set a breakpoint in chrome without having to use vscode as their editor? If so what changes did they have to make?

For clarity's sake, I have of course tried entering debugger into my JS code, and I have also clicked on the left side of the source file in the chrome to apply a breakpoint on a particular line. Neither of these ways of applying a breakpoint have worked for me.

1
  • And? What was the solution? Commented Oct 19, 2022 at 9:48

1 Answer 1

2

As I know There 2 way to use break point in these framework :

First, add debugger; in your code where you want like below:

  methods: {
    test() {
      let x = 15 * 5
      debugger
      //// other code
    }
  },

Second, open developer mode in source file found the place you want to have break point and click left side of it :)

Sign up to request clarification or add additional context in comments.

2 Comments

Hi sorry soroush, perhaps I was not clear enough in my question. I will update my question -- of course I have tried debugger and opening up the source in the browser and applied a breakpoint.
Probably you have something like linting tools that remove debugger from your code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.