You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debug console scrolls near top after each evaluated line after exception raised in debug console #4725
Extension version (available under the Extensions sidebar): 2019.2.5558
OS and version: Microsoft Windows [Version 10.0.17134.619]
Python version (& distribution if applicable, e.g. Anaconda): pure Python 3.7.2
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): none
Relevant/affected Python packages and their versions: none, I guess
Expected behaviour
Debug console behaves normally
Actual behaviour
Debug console scrolls to top after each evaluated line
Steps to reproduce:
Save this code as Bug.py:
import sys
sys.exit()
Enable breakpoints at "Uncaught exceptions"
Debug Bug.py in VS Code
When hitting SystemExit exception, run print(1) in Debug console.
Run sys.exit() a bunch of times (1-5 times) in the Debug console.
Notice that at one point, Debug console scrolls to top
Scroll to bottom of Debug console output
Run print(2) in Debug console.
Notice that you don't see 2 due to Debug console scrolling near top again.
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
(empty)
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
[Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134
[Extension Host] undefined session received in acceptDebugSessionStarted
t.log @ console.ts:134
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:390
_invokeHandler @ rpcProtocol.ts:375
_receiveRequest @ rpcProtocol.ts:295
_receiveOneMessage @ rpcProtocol.ts:225
_protocol.onMessage.e @ rpcProtocol.ts:100
fire @ event.ts:584
r @ ipc.net.ts:295
e @ ipc.net.ts:302
fire @ event.ts:584
o @ ipc.net.ts:103
_socketDataListener.e @ ipc.net.ts:132
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
Activity
ghost added
triage-neededNeeds assignment to the proper sub-team
Activity
DonJayamanne commentedon Mar 12, 2019
We do not control the scrolling behavior of the debug console in VS Code.
Please feel free to report this issue on the main VS Code repo.