microsoft / microsoft/vscode-cpptools
Access Denied when attaching to administrator-run process
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 6.2k
- フォーク
- 1.7k
- 平均マージ
- 14時間 46分
- マージ済み PR(30日)
- 61
説明
Issue Type: Bug
Steps:
- Run VSCode as administrator from the start menu.
- Launch your process as administrator, without debugging.
- Use
"request": "attach"in yourlaunch.jsonto select and attach to your process.
This fails with the error message:
Unable to start debugging. Failed to attach to process: Access is denied.
Note this works in Visual Studio, which also automatically restarts itself if it detects you're not running with the required privileges to attach.
A simular issue was reported in the now-closed #2881.
Extension version: 1.2.0
VS Code version: Code 1.53.1 (5d424b828ada08e1eb9f95d6cb41120234ef57c7, 2021-02-08T23:29:42.785Z)
OS version: Windows_NT x64 10.0.18363
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz (12 x 3398) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on protected_video_decode: unavailable_off rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 31.91GB (23.80GB free) |
| Process Argv | |
| Screen Reader | no |
| VM | 0% |
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Windows で、管理者として実行した VS Code プロセス、管理者として実行したターゲットプロセス、および launch.json のアタッチ要求を使って失敗を再現します。まず、拡張機能のアタッチフローと権限処理を追跡します。完了の条件は、文書化された管理者シナリオで正常にアタッチできるか、適切な昇格手段が提示されることです。以前のコンテキストについて、関連する issue #2881 を確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript, vscode
- 領域
- devtools, operating-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100