Skip to content

Commit

Permalink
avoid "Unable to open file" popups caused by missing source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Aug 27, 2020
1 parent 4c21dbd commit 0974acf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/OpenDebugAD7/TextPositionTuple.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ public static TextPositionTuple GetTextPositionOfFrame(PathConverter converter,
Path = convertedFilePath,
Name = Path.GetFileName(convertedFilePath)
};
if (!File.Exists(convertedFilePath))
{
// mark the stack frame to be skipped by default
source.PresentationHint = Source.PresentationHintValue.Deemphasize;
}

int line = converter.ConvertDebuggerLineToClient((int)beginPosition[0].dwLine);
int column = unchecked((int)(beginPosition[0].dwColumn + 1));

Expand Down

0 comments on commit 0974acf

Please sign in to comment.