cmderdev / cmder

Lovely console emulator package for Windows
https://cmder.app
MIT License
25.69k stars 2.02k forks source link

[Bug] Not able to attach to debugger in VS Code Terminal #2899

Closed KeyneZzz closed 7 months ago

KeyneZzz commented 7 months ago

Version Information

Cmder version: Version 1.3.24.236
Operating system: Windows 11

Cmder Edition

Cmder Full (with Git)

Description of the issue

I am using cmder in VSCode according to https://github.com/cmderdev/cmder/wiki/Seamless-VS-Code-Integration, and I want to attach to debugger when running some code on nodejs. But I found that I can only attach to vscode debugger on original CMD prompt.

How to reproduce

  1. in vscode, create a test.js file and add a console.log('foobar'), add breakpoint to this line
  2. toggle auto attach in any option other than "disabled"
  3. try run node --inspect test.js in vscode cmder terminal

expect: the execution will attach to vscode debugger, and will hit the breakpoint (what happened when using CMD prompt in vscode terminal) current: not attached to debugger, the execution just finished

Additional context

No response

Checklist

KeyneZzz commented 7 months ago

update clink then resolved

chrisant996 commented 7 months ago

I'm glad the issue went away.

How was Clink involved? This doesn't make any sense to me, as the author of Clink.

KeyneZzz commented 7 months ago

I'm glad the issue went away.

How was Clink involved? This doesn't make any sense to me, as the author of Clink.

In fact I was not expecting it to be resolved by updating clink, I just saw the clink update info, and wonder if making some change will make any change, so I update it and tried again, and find it work unexpectedly...