Visual Studio Code breakpoint appearing in wrong place

前端 未结 3 1573
面向向阳花
面向向阳花 2020-12-05 00:34

In my Vue+Vuex project, I am trying to debug using Visual Studio Code. I have the debugger launching properly using Chrome debug tools, and properly using a map, but when I

3条回答
  •  广开言路
    2020-12-05 01:11

    I think you are actually trying to set break point at the middle of a statement.

    It is actually a single statement.

    Consider below statement.

    You can set a break point infront of it.

    > var obj = { a: value1, b: value2 }

    If you write this as

    var obj = { //can set break point here
     a: value1, //you can't set break point in this line 
    
     b: value2 //you can't set break point in this line 
    }
    

提交回复
热议问题