How to solve Could not attach to main target error?

Viewed 762

Can't debug on Chrome under VS Code - getting "Could not attach to main target" error

Searches have given two approaches to fix, neither of which have helped: Disabling javascript preview doesn't help. Going back to earlier versions of Chrome doesn't help.

The error is sparse on detail: error dialog

I CAN debug on Edge and Firefox, it's only Chrome that gives me this headache. The entries in launch.json for Chrome, Edge, and Firefox are all identical, with the exception of the "type" entry.

No one else seems to have run across this - any ideas to get this working?

1 Answers
Related