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.
I use gdb as a debugger and each step* actions take 2-5 sec to execute.
I closed all Debugger views: Variables, Stack and Watch is empty and closed as well. Still very slow I can send slow_steps.log if needed.
The problem is with our "-stack-list-arguments 1" request per step. I modified it a little (see patch) and now debugger is instant like in command line
Created attachment 163690 [details] experimental patch experimental patch to evaluate "-stack-list-arguments 0"
Created attachment 163691 [details] fast steps log
Created attachment 163692 [details] slow steps log
The proposal is to introduce combo-box in Tools->Options->C++->Debugger: - use 0 as a default, but allow use to select view mode for 0,1,2 from doc: https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Stack-Manipulation.html If print-values is 0 or --no-values, print only the names of the variables; if it is 1 or --all-values, print also their values; and if it is 2 or --simple-values, print the name, type and value for simple data types, and the name and type for arrays, structures and unions. If the option --no-frame-filters is supplied, then Python frame filters will not be executed.
Btw, I have tried "2" and it as slow as "1" when debug clang, but may be for normal binaries it wouldn't so slow. That's why may be 2 is more friendly that 0, but I still need a way to set to '0' for my usecase
New check box added into Tools-> Options -> C/C++-> Debugging You can turn off arguments values request for Cal Stack and Debugging View Even if it is turned on but Call Stack View and Debugging view are both closed Step will work fast. suggested patch is in attach
Created attachment 163730 [details] fast step with new UI
fixed in enum/release82 - should be transplanted into the trunk and releases(release82) changeset: 314363:825aa2be209e branch: release82 parent: 314306:31263a5a432b user: Maria Dalmatova <mromashova@netbeans.org> date: Sun Mar 05 21:01:51 2017 +0300 summary: fixed bz#269898 - very slow step actions
Integrated into 'main-silver', will be available in build *201703070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4d43e96023fa User: Maria Dalmatova <mromashova@netbeans.org> Log: fixed bz#269898 - very slow step actions New check box added into Tools-> Options -> C/C++-> Debugging You can turn off arguments values request for Cal Stack and Debugging View Even if it is turned on but Call Stack View and Debugging view are both closed Step will work fast. (transplanted from 825aa2be209e04ad0647d2b96b3e072ccca90e8b)
https://netbeans.org/bugzilla/show_bug.cgi?id=269898 Changesets: http://hg.netbeans.org/releases/rev/825aa2be209e # fixed bz#269898 - very slow step actions http://hg.netbeans.org/releases/rev/92c0d2a9a5dc # added fix to bz#269898 - i18n