Skip to content

Commit

Permalink
fix for trace files with option xdebug.collect_params other then 4
Browse files Browse the repository at this point in the history
  • Loading branch information
soulflyman committed Feb 13, 2020
1 parent f0bf969 commit 7a43c5b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions XdebugTraceViewer/XdebugTraceItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,20 @@ private void ParseEntry(ref string[] traceSplit)
IncludeName = traceSplit[7];
File = traceSplit[8];
Line = traceSplit[9];

IsExpanded = false;
IsReturnFormatted = false;
HighlightOwn = true;

if (traceSplit.Length < 11) return;

ParameterCount = int.Parse(traceSplit[10]);
Parameters = new string[ParameterCount];

for (var i = 11; i < traceSplit.Length; i++)
{
Parameters[i - 11] = traceSplit[i];
}

IsExpanded = false;
IsReturnFormatted = false;
HighlightOwn = true;
}

/// <summary>
Expand Down

0 comments on commit 7a43c5b

Please sign in to comment.