디버깅 작업 전환을 위한 VisualStudio Code 바로 가기 키 (VisualStudio Code shortcut key for switching debugging task)


문제 설명

디버깅 작업 전환을 위한 VisualStudio Code 바로 가기 키 (VisualStudio Code shortcut key for switching debugging task)

VS Code에서 이 도구 모음의 작업을 전환할 수 있는 키보드 단축키(또는 키 입력 조합)가 있습니까?

여기에 이미지 설명 입력

또는 이것?

여기에 이미지 설명 입력

또는 공유 클라이언트/서버 코드를 디버깅하기 위한 더 나은 워크플로가 있습니까? 하나의 보기에서 모든 작업을 수행하는 것보다 두 개의 디버깅 세션이 필요합니까?


참조 솔루션

방법 1:

Update 2: In v1.70 Insiders now there is a new command for switching debug sessions:

Debug: Select Debug Session
workbench.action.debug.selectDebugSession

It is unbound to a keybinding by default.

It brings up a quick pick panel of running debug sessions plus the option to Start a new debug session which when chosen displys the available launch configurations.


Update: According to this issue commands are being added to switch debug consoles. May be in vscode v1.69. See add keyboard shortcuts to navigate debug consoles

Use CTRL+PgUp (or CTRL+SHIFT+[ on mac) to move to the previous console. The command Debug: Focus Previous Debug Console should do the same thing.

Use CTRL+PgDn (or CTRL+SHIFT+] on mac) to move to the next console. The command Debug: Focus Next Debug Console should do the same thing.


Previous answer

I don't think there is an easy way to switch debug sessions by keystroke yet. See UI Issues with two simultaneous client/server debug sessions, switching debug sessions: issue is a backlog candidate, upvote it. Also https://github.com/microsoft/vscode/issues/39560 and https://github.com/microsoft/vscode/issues/108844.

In the meantime, for my extension upon request by a user I created a command to go to the next or previous debug session, see https://github.com/ArturoDent/launch‑config/issues/11#issuecomment‑1013606260 ‑ but since there is no real supported way to do so it is a bit of a hack but does work.

Outside of my extension you can package the commands yourself via a macro extension like multi‑command.

Try these keybindings:

{
  "key": "alt+k",      // whatever keybinding you want
  "command": "extension.multiCommand.execute",
  "args": {
    "sequence": [
      "workbench.debug.action.focusCallStackView",
      "list.selectAll",
      "list.collapseAll",
      "list.focusPageDown",       // focus next debug session
      "list.select"
    ]
  },
},

{
  "key": "alt+i",      // whatever keybinding you want
  "command": "extension.multiCommand.execute",
  "args": {
    "sequence": [
      "workbench.debug.action.focusCallStackView",
      "list.selectAll",
      "list.collapseAll",
      "list.focusPageUp",       // focus previous debug session
      "list.select"
    ]
  },
}

(by WatusimotoMark)

참조 문서

  1. VisualStudio Code shortcut key for switching debugging task (CC BY‑SA 2.5/3.0/4.0)

#visual-studio-code #vscode-debugger






관련 질문

TypeScript, VSCode: vscode의 내부 버전으로 전환할 때 keyof 유형이 예상대로 작동하지 않습니다. (TypeScript, VSCode: keyof type not working as expected when switching to insider version of vscode)

Visual Studio Code가 이상하게 작동합니다. (Visual Studio Code acts weird)

거짓 긍정 "연결할 수 없는 코드가 감지되었습니다.ts(7027)"? (False positive "Unreachable code detected.ts(7027)"?)

미니맵에서 Visual Studio Code 하이라이트 선택(스크롤바 아님) (Visual Studio Code highlight selection on minimap (not scrollbar))

소품과 값 사이에 공백을 적용하기 위한 Sass linting 규칙이 VS Code에서 잘못 작동합니까? (Is the Sass linting rule for enforcing a space between the prop and value working incorrectly with VS Code?)

VSCode(Mac) 2020의 C++ std_lib_facilities.h 파일 (C++ std_lib_facilities.h file in VSCode (Mac) 2020)

pytest를 사용하여 VSCODE에서 python 테스트 설정 문제 (Issues setting up python testing in VSCODE using pytest)

Coderunner 문제 Mac (Coderunner issues Mac)

디버깅 작업 전환을 위한 VisualStudio Code 바로 가기 키 (VisualStudio Code shortcut key for switching debugging task)

vs 코드에서 PHP 자동 완성이 작동하지 않습니다 (PHP auto complete in vs code doesn't work)

VSCode powershell 함수 서명 인텔리센스 제안 (VSCode powershell function signature intellisense suggestions)

iPython 셸에서 인라인으로 플롯할 수 없음(터미널 및 VScode 터미널 창) (Can't plot inline in iPython shell (Terminal and VScode terminal window))







코멘트