diff --git a/src/vs/workbench/contrib/debug/browser/repl.ts b/src/vs/workbench/contrib/debug/browser/repl.ts index 96bb2f8da9d..9a9b0337176 100644 --- a/src/vs/workbench/contrib/debug/browser/repl.ts +++ b/src/vs/workbench/contrib/debug/browser/repl.ts @@ -768,7 +768,7 @@ class ReplDelegate implements IListVirtualDelegate { return (nameRows + 1) * rowHeight; } - let valueRows = countNumberOfLines(value) + Math.floor(value.length / 150); + let valueRows = value ? (countNumberOfLines(value) + Math.floor(value.length / 150)) : 0; return rowHeight * (nameRows + valueRows); }