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.
When debugging a rake task, the @<name> and @@<name> variables are not shown in the variable examination tab (Local variables). These variables need to be visible for full debugging. Either as part of "Global Variables" object, or as part of their own hierarchy.
They are shown as instance variable and class variables for the object instance. If you define such variables on top level, like: require 'rubygems' require 'rake' require 'rake/testtask' @a = 'hi there' @@aa = 'hello there' desc "Default Task (test)" task :default => [ :test ] They 'belong' to the self object which is not show on the top-level. Otherwise you should see them always. Please reopen if you don't. You might also add 'self' to the Watches if you want to watch the 'self' on top-level.
The problem is that when debugging rake tasks, you may be debugging code that has been provided by external parties where the @<name> or @@<name> variables are not defined a the top of the file, but instead follow the Ruby DRY principal and are defined upon first use. In the attached screenshot, you can see me in the process of debugging "rake db:fixtures:load" from the fixture_scenarios plugin. The variable @fixture_paths is a valid array with proper values in it; however, as you can see, the self object has no knowledge of the variable.
Created attachment 64638 [details] Screenshot documenting the issue.
I though it happens only on top frame on the stack. Clear now. Thanks. Likely bug in the backends, will investigate.
Integrated into 'main-golden', available in NB_Trunk_Production #351 build Changeset: http://hg.netbeans.org/main/rev/f4d5e03a985d User: Erno Mononen <emononen@netbeans.org> Log: #139817: "Access Database using JDBC" is partly visible
desc6 should go to issue 139187, put wrong issue number to the commit msg.