microsoft / microsoft/vscode-cpptools

Suggestion on Pretty-printer With Pointer Indirection

オープン
#5,299 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

debugger Feature Request
主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

説明

Type: Debugger

image

Describe the bug

  • OS and Version: WSL Ubuntu 18.04
  • VS Code Version: 1.44
  • C/C++ Extension Version: 0.27.0

This is a feature request. In current version of cpptool, we may utilizing pretty-printer to effectively look at the content of STL structures. However, this mechanism fails as soon as you wrap it with a pointer indirection as shown above.
May we add a feature so that we could find if an underlying type of a pointer could be printed in a better format? Also, if that involves a large amount of work, could we add a menu item Watch Pointee so that we could quickly add "*p" of any pointer-like object to the watch window so we could look at the content more easily?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、リンクされたスクリーンショットをコンテキストとして使用し、WSL Ubuntu 18.04 上の VS Code C/C++ デバッガーで報告された動作を再現します。pretty-printer がポインターの間接参照をどのように処理するかを確認し、要求されている Watch Pointee メニュー項目を検討します。ポインターでラップされた STL 値をより効果的に検査できるようになるか、明確な pointee の監視アクションを利用できるようになれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp, typescript, vscode
領域
devtools
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。