PowerShell / PowerShell/PowerShellEditorServices

Add support for source maps

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

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

Area-Debugging Issue-Enhancement
主要言語
C#
スター
767
フォーク
266
平均マージ
3日 16時間
マージ済み PR(30日)
1

説明

One of the most common project layouts is to have every function in it's own ps1 file. When one of those projects gets at a certain size (very large, like dbatools) that can begin to affect the load time of the module. As a workaround, some of these modules will "compile" the ps1 files into a single psm1.

I think it would be a good idea to come up with a source map system so if we break somewhere in the compiled psm1 we could show the original source file instead.

This could also be useful for other projects who test against the "fully built" version of their module in a Release folder. I do this in a lot of my projects and often end up editing the temporary version of a file in Release because that's where the debugger put me.

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

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

はじめの一歩

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

調査の方向性

この issue にはファイル、テスト、エントリーポイントが記載されていません。まずモジュールのコンパイルと debugger のソース位置処理を探し、次に source map がコンパイル済みの psm1 の位置を元の ps1 ファイルにどのように対応付けるべきかを決定してください。完了条件には、定義されたマッピング形式と debugger の動作を含め、Release フォルダーにビルドされたモジュールもカバーする必要があります。

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

評価

領域
devtools
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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