С момента вчерашнего обновления до 1.47.0
, когда VSCode запускается, он дает мне следующий вывод в терминале (без последующего запроса, который позволил бы мне ввести):
Debugger listening on ws://127.0.0.1:55430/f3f20387-0605-4a39-b807-77f02bea362f
For help, see: https://nodejs.org/en/docs/inspector
В противном случае обычная процедура заключалась в следующем: Терминал VSCode (bash), набрав npm run serve
(package. json has "serve": "vue-cli-service serve"
).
Однако я, очевидно, не могу сделать это сейчас, когда постоянно есть отладчик и инспектор Бег? Вот скриншот, показывающий мой пустой launch.json
и терминал:
![debugger showing instead of command prompt](https://i.stack.imgur.com/c9Hs5.png)
Can someone please tell me how to fix this? I have no idea what has gone wrong, but it only seems to happen with this particular project which I'm opening with code .
UPDATE
So I tried some more things.
- I ran
cp -rf testsite testfrontend
within WSL
- and then in the copied directory I deleted
package-lock.json
and node_modules
- I subsequently ran
npm install
- I then started VSCode by running
code .
in the directory of the copied project within WSL
When vscode came up, the terminal wasn't showing. When I showed it (ctrl+`), the following lines ran automatically on their own:
![vscode terminal startup](https://i.stack.imgur.com/hJJ49.png)
Затем я запустил npm run serve
, и произошло следующее: ![stuck](https://i.stack.imgur.com/sBLsN.png)
And with this message in the Debugger Console tab:
![error](https://i.stack.imgur.com/2WDDh.png)
I should mention that I don't get this error or any of the other aforementioned issues when I run npm run serve
directly from WSL. I also don't get the aforementioned issues if I click the green WSL: Ubuntu
button at the bottom left and then choose Remote-WSL: New Window
and then run npm run serve
:
новое окно