mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 11:59:25 +02:00
Debugger, IDE: clear new lines for errors, and status text. Related to 5f0317b72e
This commit is contained in:
parent
73f0e0ea68
commit
73bbf37840
@ -385,7 +385,11 @@ begin
|
||||
Result := '';
|
||||
case AResValue.ValueKind of
|
||||
rdkError:
|
||||
begin
|
||||
Result := 'Error: ' + AResValue.AsString;
|
||||
if rpfClearMultiLine in FFormatFlags then
|
||||
Result := ClearMultiline(Result);
|
||||
end;
|
||||
rdkUnknown:
|
||||
Result := 'Error: Unknown';
|
||||
rdkPrePrinted: begin
|
||||
|
@ -844,7 +844,7 @@ var
|
||||
begin
|
||||
ResData := AWatchAbleResult.ResultData;
|
||||
if ResData = nil then
|
||||
s := AWatchAbleResult.Value
|
||||
s := ClearMultiline(AWatchAbleResult.Value)
|
||||
else
|
||||
s := FLocalsDlg.FWatchPrinter.PrintWatchValue(ResData, wdfDefault);
|
||||
TreeView.NodeText[AVNode, 0] := TIdeLocalsValue(AWatchAble).DisplayName;
|
||||
|
@ -1383,7 +1383,7 @@ begin
|
||||
(AWatchAbleResult.TypeInfo.Attributes * [saArray, saDynArray] <> []) and
|
||||
(AWatchAbleResult.TypeInfo.Len >= 0)
|
||||
then TreeView.NodeText[AVNode, COL_WATCH_VALUE-1] := Format(drsLen, [AWatchAbleResult.TypeInfo.Len]) + AWatchAbleResult.Value
|
||||
else TreeView.NodeText[AVNode, COL_WATCH_VALUE-1] := AWatchAbleResult.Value;
|
||||
else TreeView.NodeText[AVNode, COL_WATCH_VALUE-1] := ClearMultiline(AWatchAbleResult.Value);
|
||||
end;
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user