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 #70331
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
Yes, looks like #69207 is a duplicate of this one, although #69207 does not have specific reproduction steps. This one does.
Also, it looks like they investigated 1.32.0-insider, while I am still seeing this in 1.32.1. Also, I can repro this in the latest insider build with only the Python extension and no settings changed whatsoever (see below). Finally, I must admit finding repro steps was a bit difficult. So I am not fully convinced this issue is fixed, as implied by #69207.
I can not reproduce with node. Don Jayamanne (@DonJayamanne) please try reproducing with python bersbersbers if you F1 > developer tools > put a breakpoint here what do you see as scrollTop, scrollHeight and renderHeight at the exact moment when the debug console scrolls unexpectedly?
bersbersbers if you F1 > developer tools > put a breakpoint here what do you see as scrollTop, scrollHeight and renderHeight at the exact moment when the debug console scrolls unexpectedly?
Breakpoint is hit twice per manual sys.exit().
After the first time manually entering sys.exit(), with the breakpoint hit at line 85:
Hi Isidor Nikolic (@isidorn), OP here. I can still repro the bug in official 1.34.0, so this is certainly not fixed. However, my repro steps from the original description do not work any longer as running sys.exit() actually ends the process that is debugged. I managed to repro the same issue with throw 1. So these are my current repro steps:
Save this code as Bug.py:
breakpoint()
print(0)
Debug Bug.py in VS Code
When hitting the breakpoint, run print(1) in Debug console.
Run throw 1 a bunch of times (1-5 times) in the Debug console.
Notice that at one point, Debug console scrolls up quite a bit
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.
Here's a gif as well. (The gif misses step 6, but I think it gets the main issue across.)
bersbersbers we have pushed a fix with the help of Jean Pierre (@jeanp413)
Please try it with VSCode insiders starting from Tuesday which will have the fix. Thank you
and it seems to me the issue is gone, thank you! (Of course, I will be more confident once an actual release has the fix as I haven't re-setup insiders the exact same way I use my release version - let's hope for the best!)
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
Activity
vscodebot commentedon Mar 12, 2019
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
bersbersbers commentedon Mar 12, 2019
Yes, looks like #69207 is a duplicate of this one, although #69207 does not have specific reproduction steps. This one does.
Also, it looks like they investigated 1.32.0-insider, while I am still seeing this in 1.32.1. Also, I can repro this in the latest insider build with only the Python extension and no settings changed whatsoever (see below). Finally, I must admit finding repro steps was a bit difficult. So I am not fully convinced this issue is fixed, as implied by #69207.
isidorn commentedon Mar 13, 2019
I can not reproduce this.
Can you attach a gif / video showing this
Don Jayamanne (@DonJayamanne) can you repro this using python?
bersbersbers commentedon Mar 13, 2019
Sure, here's a GIF:

isidorn commentedon Mar 13, 2019
I can not reproduce with node.
Don Jayamanne (@DonJayamanne) please try reproducing with python
bersbersbers if you F1 > developer tools > put a breakpoint here what do you see as scrollTop, scrollHeight and renderHeight at the exact moment when the debug console scrolls unexpectedly?
razhangwei commentedon Mar 13, 2019
I encountered exactly the same issue as bersbersbers.
isidorn commentedon Mar 13, 2019
Wei Zhang (@razhangwei) then you can also try to answer the quesionts i asked bersbersbers . Get your hands dirty and do some debugging. Thanks
bersbersbers commentedon Mar 13, 2019
Breakpoint is hit twice per manual
sys.exit().After the first time manually entering
sys.exit(), with the breakpoint hit at line 85:After the second time manually entering
sys.exit():After (+), debug console is scrolled to top. I noticed that during (+), the debug console is empty, but not during any of the other breakpoint hits.
I double-checked:
80is not a typo of480, the above numbers are correct.DonJayamanne commentedon Mar 13, 2019
Yes, I too can replicate this issue on my Mac
isidorn commentedon Mar 13, 2019
Ok, thanks for help everybody.
I can repro on my mac. Investigating...
isidorn commentedon Mar 13, 2019
After investigating and discussion with João Moreno (@joaomoreno) we figured out it is a dup of #68385
16 remaining items
bersbersbers commentedon May 24, 2019
Hi Isidor Nikolic (@isidorn), OP here. I can still repro the bug in official 1.34.0, so this is certainly not fixed. However, my repro steps from the original description do not work any longer as running
sys.exit()actually ends the process that is debugged. I managed to repro the same issue withthrow 1. So these are my current repro steps:Bug.pyin VS Codeprint(1)in Debug console.throw 1a bunch of times (1-5 times) in the Debug console.print(2)in Debug console.2due to Debug console scrolling near top again.Here's a gif as well. (The gif misses step 6, but I think it gets the main issue across.)

isidorn commentedon May 27, 2019
Thanks for the steps, I will look into this this or next week.
isidorn commentedon Jun 10, 2019
bersbersbers we have pushed a fix with the help of Jean Pierre (@jeanp413)
Please try it with VSCode insiders starting from Tuesday which will have the fix. Thank you
bersbersbers commentedon Jun 25, 2019
I have just checked
and it seems to me the issue is gone, thank you! (Of course, I will be more confident once an actual release has the fix as I haven't re-setup insiders the exact same way I use my release version - let's hope for the best!)
isidorn commentedon Jun 25, 2019
Thanks. Adding verified label. Let us know how it goes once you get the stable update.
bersbersbers commentedon Jul 3, 2019
Stable looks good to me, too, thanks!