How to debug a VS Code extension in VS Code instance using CursorAI

Hi there.

  1. I’m debugging a VS Code extension.
  2. I’d used to do it in VS Code. Press F5, a new VS Code instance will pop up.
  3. Now I’m moving to develop it in Cursor.
  4. In Cursor, Press F5, a Cursor instance pops up… (I tried installing another VS Code in different folder. Not work.)
  5. I asked the Cursor AI, and it gave me a solution:
  • 5.1 Debug it in VS Code with “npm run -watch”
  • 5.2 Edit code in Cursor
  • 5.3 It did work, but if I need to set a break point, I have to switch to the VS Code, find the file, find the location, click to set it.
  1. And, the extension is intended to be run under VS Code, not Cursor.

So, is there anything I can do to use a VS Code instance for debugging? Thanks.

Did you solve this error?