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.
Summary: | 'Step into last or selected function' does not work with C++ | ||
---|---|---|---|
Product: | cnd | Reporter: | jackua |
Component: | Debugger | Assignee: | henk89 |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
test case
gdb log |
Description
jackua
2014-03-14 00:57:13 UTC
Could you please provide the scenario to reproduce the issue? I cannot find cases when it works. I don't know how to describe "any case". Will WebEx session be helpful? I guess mail redirector works here and we can find each other in next few days though mail. Just two functions worked fine but when I wrapped them into a class , stepinto stopped working. Attaching a source file and gdb log from start to missed step into. I created NB project from scratch with whatever Makefile was generated (I can attach the project too). Created attachment 146793 [details]
test case
dummy program with a class where stepinto does not work.
Set breakpoints on foo() and return and try to step into foo. You will hit return.
Created attachment 146794 [details]
gdb log
BTW, current behavior is worse than if the feature just does not work. If it does not work, stepinto would do nothing. Currently, stepinto shows a dialog and then does CONTINUE. Oops, we run away from a place of debugging. Nikolay, please, evaluate (In reply to jackua from comment #4) > Created attachment 146793 [details] > test case > > dummy program with a class where stepinto does not work. > Set breakpoints on foo() and return and try to step into foo. You will hit > return. Could you please clarify what certain steps I should make? The only reason for the debugger to fail is setting the incorrect functional breakpoint: c.foo in this case. Please, try typing C::foo instead. This is a pure GUI feature. I am not supposed to "type" anything. If I select a function and then click "Step into last or selected function..." button, /tmp/gdb-cmds...log shows 43-break-insert -t c.foo 44-exec-continue 43^error,msg="Function \"c.foo\" not defined." (gdb) 44^running I am not going to type such commands in debug console. Even more, debug console by default is hidden and some NB developers are trying to keep it hidden all the time. Even more, I have to know all correct types to use that functionality. What's the point in having a button if I need to type commands in console? I miss that button ... I used today's NB 8.0 installation. Has anybody tried my tiny program on Linux successfully? (In reply to jackua from comment #10) > This is a pure GUI feature. I am not supposed to "type" anything. There is another way to set a functional breakpoint there you can type a full function name manually. This should be your way since the debugger is unable to somehow connect c.foo and C::foo. > If I select a function and then click "Step into last or selected > function..." button, /tmp/gdb-cmds...log shows > 43-break-insert -t c.foo > 44-exec-continue > 43^error,msg="Function \"c.foo\" not defined." > (gdb) > 44^running > I am not going to type such commands in debug console. Even more, debug > console by default is hidden and some NB developers are trying to keep it > hidden all the time. Even more, I have to know all correct types to use > that functionality. What's the point in having a button if I need to type > commands in console? There is no need to type anything in the console! You should use Debug->New Breakpoint. This button works with functions not being class members. > I miss that button ... > > I used today's NB 8.0 installation. > Has anybody tried my tiny program on Linux successfully? Integrated into 'main-silver', will be available in build *201406270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ff5be9d5d143 User: Nikolay Koldunov <henk89@netbeans.org> Log: Fixed #242884 - 'Step into last or selected function' does not work with C++ |