Change:
Issue Type: <bBug</bctrl-shift-p, "Debug: Start Debugging" leads to this error. I saw that this error was previously mentioned and fixed in a recent update, but the error persists. VS Code version: Code 1.46.1 (, 2020-06-17T21:13:20.174Z) OS version: WindowsNT x64 10.0. Remote OS version: Linux x64 4.19.104-microsoft-standard <details<summarySystem Info</summary </details<details<summaryExtensions (20)</summaryExtensionVersion ------ regex0.2.0 gitlens10.2.2 vscode-pull-request-github0.17.0 vscode-codemetrics1.24.0 cpptools0.28.3 vscode-versionlens1.0.8 java0.63.0 vscodeintellicode1.2.8 application-insights0.4.2 vscode-java-debug0.26.0 vscode-java-dependency0.10.2 vscode-java-pack0.9.1 vscode-java-test0.23.0 vscode-maven0.22.0 code-lens-roundup1.0.0 remote-containers0.122.1 remote-ssh0.51.0 remote-ssh-edit0.51.0 remote-wsl0.44.3 vscode-remote-extensionpack0.20.0 </details<!-- generated by issue reporter --
Same problem vscode v1.47.3. any update on this issue?
The issue was fixed in this insiders release:
what debugger are you using?
Dotnet Core.
thanks. That debugger is a separate extension (C#). Please file an issue against that. We have fixed a similar problem with the debugger (which is built into VS Code). But that fix does not cover the C# debugger.

Discussion:
if (lineNumber < 1) { lineNumber = 1; <ins> column = 1; </ins> } <del> if (lineNumber > this._lines.length) { </del> <ins> else if (lineNumber > this._lines.length) { </ins> lineNumber = this._lines.length; <ins> column = this.getLineMaxColumn(lineNumber); </ins> } <del> if (column < 1) { column = 1; } var maxColumn = this.getLineMaxColumn(lineNumber); if (column > maxColumn) { column = maxColumn; </del> <ins> else { var maxColumn = this.getLineMaxColumn(lineNumber); if (column < 1) { column = 1; } else if (column > maxColumn) { column = maxColumn; } </ins> } return new Position(lineNumber, column);

}); } <del> } </del>  No newline at end of file <ins> } </ins>

], 'mixed whitespace 2'); }); <ins> test('validatePosition', () => { var m = new TextModel([], TextModel.toRawText('line onenline two', TextModel.DEFAULT_CREATION_OPTIONS)); assert.deepEqual(m.validatePosition(new Position(0, 0)), new Position(1, 1)); assert.deepEqual(m.validatePosition(new Position(0, 1)), new Position(1, 1)); assert.deepEqual(m.validatePosition(new Position(1, 1)), new Position(1, 1)); assert.deepEqual(m.validatePosition(new Position(1, 2)), new Position(1, 2)); assert.deepEqual(m.validatePosition(new Position(1, 30)), new Position(1, 9)); assert.deepEqual(m.validatePosition(new Position(2, 0)), new Position(2, 1)); assert.deepEqual(m.validatePosition(new Position(2, 1)), new Position(2, 1)); assert.deepEqual(m.validatePosition(new Position(2, 2)), new Position(2, 2)); assert.deepEqual(m.validatePosition(new Position(2, 30)), new Position(2, 9)); assert.deepEqual(m.validatePosition(new Position(3, 0)), new Position(2, 9)); assert.deepEqual(m.validatePosition(new Position(3, 1)), new Position(2, 9)); assert.deepEqual(m.validatePosition(new Position(3, 30)), new Position(2, 9)); assert.deepEqual(m.validatePosition(new Position(30, 30)), new Position(2, 9)); }); </ins> test('modifyPosition', () => { var m = new TextModel([], TextModel.toRawText('line onenline two', TextModel.DEFAULT_CREATION_OPTIONS)); assert.deepEqual(m.modifyPosition(new Position(1,1), 0), new Position(1, 1)); assert.deepEqual(m.modifyPosition(new Position(0,0), 0), new Position(1, 1)); <del> assert.deepEqual(m.modifyPosition(new Position(30, 1), 0), new Position(2, 1)); </del> <ins> assert.deepEqual(m.modifyPosition(new Position(30, 1), 0), new Position(2, 9)); </ins> assert.deepEqual(m.modifyPosition(new Position(1,1), 17), new Position(2, 9)); assert.deepEqual(m.modifyPosition(new Position(1,1), 1), new Position(1, 2));

if (line < 0) { line = 0; <ins> character = 0; </ins> hasChanged = true; } <del> if (line >= this._lines.length) { </del> <ins> else if (line >= this._lines.length) { </ins> line = this._lines.length - 1; <ins> character = this._lines[line].length; </ins> hasChanged = true; } <del> if (character < 0) { character = 0; hasChanged = true; } let maxCharacter = this._lines[line].length; if (character > maxCharacter) { character = maxCharacter; hasChanged = true; </del> <ins> else { let maxCharacter = this._lines[line].length; if (character < 0) { character = 0; hasChanged = true; } else if (character > maxCharacter) { character = maxCharacter; hasChanged = true; } </ins> } if (!hasChanged) {

} }, onUnexpectedError); } <del> } </del>  No newline at end of file <ins> } </ins>