This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Reporting from a dev build, but has occurred for a long time, years probably. JDK 7, Ubuntu, Nimbus. When I am stopped at a breakpoint, and have the Debugging window open (in right sliding mode), I can expand the active thread to see the stack trace leading up to the BP. I frequently need to click Hidden Source Calls to see some critical portion of the stack. (As an aside, this is broken: right now I am at a breakpoint in Jenkins, and all the visible stack lines are from libraries; the interesting stack lines, from sources in one of the open projects, are Hidden!) Unfortunately just before I go to click on some node in this view, something refreshes—maybe a background thread from some executor service getting recycled?—and the window scrolls all the way to the bottom, moving the interesting part (at the top) out of reach. If I move fast enough, I can eventually click what I need to click and see the information I need to see, but it is like playing a video game to get there.
I've seen this. It's annoying. We need to identify what makes the window to scroll.
Created attachment 145122 [details] Proposed Patch The scrolling seems to behave quite reasonable with the patch. Side effect: When a method is stepped into (or exited), debugging window scrolls to the current thread's stack trace.
http://hg.netbeans.org/core-main/rev/2ec3bf3d72ae Fixed. Thanks for reporting.
Integrated into 'main-silver', will be available in build *201402190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2ec3bf3d72ae User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #233265: Stack traces in Debugging window scroll out of view
OK so far in 20140219-56d93f8aa028, though I have not tried to exercise it much.
Still not working well for me in 20140219-56d93f8aa028. Have a suspended thread with ~20 frames in its stack (none “hidden”); the Debugging window keeps on scrolling to the bottom, moving most of this thread out of view. This happens even without me doing anything at all in the IDE. Possibly one or two unrelated threads have started or stopped, but at any rate this ought not cause the scroll position to change abruptly.
The fix to issue #137179 has caused this. I've change it to delegate scrollRectToVisible() to the proper view in changeset: 276908:379f7c4a2745 http://hg.netbeans.org/core-main/rev/379f7c4a2745
Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/379f7c4a2745 User: mentlicher@netbeans.org Log: #233265: Do not scroll the view as a reponse to selection changes. Respond to scrollRectToVisible() instead.