Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > netbeans debugger and local variables

Reply
Thread Tools

netbeans debugger and local variables

 
 
Michael Preminger
Guest
Posts: n/a
 
      08-11-2004

I have a problem with the debugger of netBeans IDE version 3.6:

I cannot make it to watch variables that are local to functions.

It can be set to watch member variables of classes, as well as locally
defined final variables (constants) but for local variables within
methods attempted watched it says:
identifier cannot be resolved

Both "Internal compilation" option, as well as the "external
compilation" have their "debug" tab checked.

Is this a bug or a feature? or: What am I missing. Rather the latter.

Thanks

Michael
 
Reply With Quote
 
 
 
 
Ike
Guest
Posts: n/a
 
      08-11-2004
Have you done "properties" on that source file (right-click on the filename
in the filesystems tab, then 'properties') ,click the 'execution' tab, and
set the debugging options to "applet" or "default debugging?" -Ike

"Michael Preminger" <> wrote in message
news:cfdl9i$aom$...
>
> I have a problem with the debugger of netBeans IDE version 3.6:
>
> I cannot make it to watch variables that are local to functions.
>
> It can be set to watch member variables of classes, as well as locally
> defined final variables (constants) but for local variables within
> methods attempted watched it says:
> identifier cannot be resolved
>
> Both "Internal compilation" option, as well as the "external
> compilation" have their "debug" tab checked.
>
> Is this a bug or a feature? or: What am I missing. Rather the latter.
>
> Thanks
>
> Michael



 
Reply With Quote
 
 
 
 
Michael Preminger
Guest
Posts: n/a
 
      08-11-2004
Ike wrote:

> Have you done "properties" on that source file (right-click on the filename
> in the filesystems tab, then 'properties') ,click the 'execution' tab, and
> set the debugging options to "applet" or "default debugging?" -Ike
>

Thanks.
It was on "Default debugging". I have entered the properties for DEfault
debugging, and tried to check the "classic" tab switch. But this didnt
help either.

> "Michael Preminger" <> wrote in message
> news:cfdl9i$aom$...
>
>>I have a problem with the debugger of netBeans IDE version 3.6:
>>
>>I cannot make it to watch variables that are local to functions.
>>
>>It can be set to watch member variables of classes, as well as locally
>>defined final variables (constants) but for local variables within
>>methods attempted watched it says:
>>identifier cannot be resolved
>>
>>Both "Internal compilation" option, as well as the "external
>>compilation" have their "debug" tab checked.
>>
>>Is this a bug or a feature? or: What am I missing. Rather the latter.
>>
>>Thanks
>>
>>Michael

>
>
>

 
Reply With Quote
 
Ike
Guest
Posts: n/a
 
      08-12-2004
What if you set a breakpoint in that function, and let the mouse pointer
hover over the variable. Doesn't it's value show up in a tooltip? -Ike

"Michael Preminger" <> wrote in message
news:cfe13e$16p$...
> Ike wrote:
>
> > Have you done "properties" on that source file (right-click on the

filename
> > in the filesystems tab, then 'properties') ,click the 'execution' tab,

and
> > set the debugging options to "applet" or "default debugging?" -Ike
> >

> Thanks.
> It was on "Default debugging". I have entered the properties for DEfault
> debugging, and tried to check the "classic" tab switch. But this didnt
> help either.
>
> > "Michael Preminger" <> wrote in message
> > news:cfdl9i$aom$...
> >
> >>I have a problem with the debugger of netBeans IDE version 3.6:
> >>
> >>I cannot make it to watch variables that are local to functions.
> >>
> >>It can be set to watch member variables of classes, as well as locally
> >>defined final variables (constants) but for local variables within
> >>methods attempted watched it says:
> >>identifier cannot be resolved
> >>
> >>Both "Internal compilation" option, as well as the "external
> >>compilation" have their "debug" tab checked.
> >>
> >>Is this a bug or a feature? or: What am I missing. Rather the latter.
> >>
> >>Thanks
> >>
> >>Michael

> >
> >
> >



 
Reply With Quote
 
Michael Preminger
Guest
Posts: n/a
 
      08-12-2004
After trying and retrying, everything suddenly works fine now.
So now Im trying to record the state of the debugging options...

Thanks for your help.

M.

On 8/12/2004 2:59 AM, Ike wrote:
> What if you set a breakpoint in that function, and let the mouse pointer
> hover over the variable. Doesn't it's value show up in a tooltip? -Ike
>
> "Michael Preminger" <> wrote in message
> news:cfe13e$16p$...
>
>>Ike wrote:
>>
>>
>>>Have you done "properties" on that source file (right-click on the

>
> filename
>
>>>in the filesystems tab, then 'properties') ,click the 'execution' tab,

>
> and
>
>>>set the debugging options to "applet" or "default debugging?" -Ike
>>>

>>
>>Thanks.
>>It was on "Default debugging". I have entered the properties for DEfault
>>debugging, and tried to check the "classic" tab switch. But this didnt
>>help either.
>>
>>
>>>"Michael Preminger" <> wrote in message
>>>news:cfdl9i$aom$...
>>>
>>>
>>>>I have a problem with the debugger of netBeans IDE version 3.6:
>>>>
>>>>I cannot make it to watch variables that are local to functions.
>>>>
>>>>It can be set to watch member variables of classes, as well as locally
>>>>defined final variables (constants) but for local variables within
>>>>methods attempted watched it says:
>>>>identifier cannot be resolved
>>>>
>>>>Both "Internal compilation" option, as well as the "external
>>>>compilation" have their "debug" tab checked.
>>>>
>>>>Is this a bug or a feature? or: What am I missing. Rather the latter.
>>>>
>>>>Thanks
>>>>
>>>>Michael
>>>
>>>
>>>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing local variables from the pdb debugger Jean-Michel Pichavant Python 4 12-11-2009 12:29 PM
NetBeans debugger: suspend and see current stack trace how? Nelson Ashton Java 15 10-15-2008 01:22 AM
Need Help getting a debugger going for IE - any free debugger aflat362 Javascript 7 12-07-2006 10:51 PM
Neither IE-Debugger or Mozilla/Venkman debugger can step through dynamically added code? Robert Oschler Javascript 1 09-05-2005 07:17 AM
NetBeans Debugger Question Richard C. Eberhardt Java 0 07-18-2003 11:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57