Skip to content

Debug console scrolls near top after each evaluated line after exception raised in debug console #4725

Closed

Description

@bersbersbers

Environment data

  • VS Code version: 1.32.1
  • 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:

  1. Save this code as Bug.py:
import sys
sys.exit()
  1. Enable breakpoints at "Uncaught exceptions"
  2. Debug Bug.py in VS Code
  3. When hitting SystemExit exception, run print(1) in Debug console.
  4. Run sys.exit() a bunch of times (1-5 times) in the Debug console.
  5. Notice that at one point, Debug console scrolls to top
  6. Scroll to bottom of Debug console output
  7. Run print(2) in Debug console.
  8. 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

  1. ghost added
    triage-needed
    on Mar 12, 2019
  2. DonJayamanne commented on Mar 12, 2019

    @DonJayamanne

    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.

  3. ghost removed
    triage-needed
    on Mar 12, 2019
  4. locked as resolved and limited conversation to collaborators on Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions