Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeJS code has a strange problem when debugging with the npm run dev command! And there is also a strange phenomenon in Remote SSH! #236585

Open
baiej214 opened this issue Dec 19, 2024 · 3 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@baiej214
Copy link

baiej214 commented Dec 19, 2024

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version:
    版本: 1.96.1 (system setup)
    提交: 42b2661
    日期: 2024-12-17T17:50:05.206Z
    Electron: 32.2.6
    ElectronBuildId: 10629634
    Chromium: 128.0.6613.186
    Node.js: 20.18.1
    V8: 12.8.374.38-electron.0

  • OS Version:
    OS: Windows_NT x64 10.0.17763
    Version: Windows Server 2019 Datacenter
    Version number: 1809
    Installation Date: 11/7/2024
    OS Build : 17763.6532

  • File structure and all code
    Image

Steps to Reproduce:

  1. I don't have any third-party plugins installed, except for the Chinese language pack.
  2. In the above configuration, press F5 to debug.
  3. The "terminal" prints out npm run dev and waits for about 15 seconds before continuing to print the result (123).
  4. And there is no output in the debug console, and the breakpoint is invalid, and the code cannot be debugged.
  5. After pressing Shift+F5 to stop debugging, manually enter "npm run dev" in the terminal, press the enter key, basically no waiting, and the content will be output soon.
  6. Manually enter "node index.js" in the terminal, press the enter key, and "123" will be output instantly.
  7. The same code and vscode will work fine on another Windows 11.
  8. I use vscode's remote ssh plugin from local Windows 11 to remote this test project, and the same problem occurs. But it's fine to run local code, and it's okay to run other servers remotely.
  9. There is also a phenomenon that when I remotely this server from a local computer, I have to add VSCode's remote. SSH.useExecServer setting is turned off in order to link the remote normally, otherwise it will never be able to connect, but it does not need to be turned off when connecting to other servers.Image

I really don't know what went wrong. Please help take a look, thank you!

@vs-code-engineering vs-code-engineering bot added *english-please Issue not using English and removed *english-please Issue not using English labels Dec 19, 2024
@baiej214 baiej214 changed the title nodejs代码在使用npm run dev命令调试的时候,出现了奇怪的问题!并且remote ssh也出现了奇怪的现象! NodeJS code has a strange problem when debugging with the npm run dev command! And there is also a strange phenomenon in Remote SSH! Dec 19, 2024
@roblourens
Copy link
Member

/jsDebugLogs

@vs-code-engineering vs-code-engineering bot added the info-needed Issue requires more information from poster label Dec 19, 2024
Copy link

Please collect trace logs using the following instructions:

If you're able to, add "trace": true to your launch.json and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.

⚠️ This log file will not contain source code, but will contain file paths. You can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains. If you'd rather not share the log publicly, you can email it to connor@xbox.com

@roblourens
Copy link
Member

Also, could you try connecting with useExecServer enabled, and share the log from the Remote-SSH output channel?

@roblourens roblourens assigned connor4312 and unassigned roblourens Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants