reactjsvisual-studio-codenext.jsvscode-debugger

Can't setup any breakpoint in VS Code for next.js


Debug config:

launch config

Steps to reproduce:

  1. Open any project.
  2. Try to toggle breakpoint by clicking on the left to the line or shift+F9.

toggle breakpoint

toogle breakpoint

Expected:

Breakpoint is added

Actual:

Nothing has occurred


Solution

  • debug pannel has been hidden before
    "editor.glyphMargin": true enables debug panel, it was hidden before