Article View: borland.public.jbuilder.debugger
Article #341Re: jbuilder debugger Expression Insight and tool tips don't work
From: yu
Date: Thu, 12 Feb 2004 22:27
Date: Thu, 12 Feb 2004 22:27
215 lines
6337 bytes
6337 bytes
Hi Hin, Thanks for your quick response. It worked when I used the "Add Breakpoint" trick. Do I have to use "Add Break point" and follow up with "Step Into" or "Step Over" to debug the project? I am working on a complicated java project including hundreds of source files connected to a similar package serving as a library for this project. I just switched to use JBuilder to work on this project. Since I'm a new user for JBuilder, could you tell me a good strategy to debug such kind of project using Jbuilder. Do I have to use different "Break points" for different source files in order to find bugs in these classes? Many thanks, Yu "Hin Boen" <hboen@borland.com> wrote in message news:402bc4f7$1@newsgroups.borland.com... > Hi Yu, > > > suspended the project for debugging > > I assume you press "pause" button to suspend the VM. And the VM happens > to stop at WToolkit.java. Since this java file is part of the JDK, and > is not compiled with debug information, JBuilder will not be able to > show you any data. > > If you want the VM to stop at your java code, you need to add a line > breakpoint in that java code. When VM executes that java code, it will > hit the line breakpoint and suspend the VM. > > -Hin > > > yu wrote: > > >Thanks Hin. After I compiled the codes with debug option (or -g using > >javac), suspended the project for debugging, pressed the "Show Current > >Frame" button, I didn't see the local variables in the current frame. It > >only displayed "No debug information" in the current frame. In the > >"Threads, call stacks and data" frame, it showed the current stepping thread > >is at "AWT-Windows" and the selected stack frame is "eventLoop() -1, > >sun.awt.windows.WToolkit, WToolkit.java". What went wrong? Do I miss any > >critical components in my system. I did try to reinstall JBuilder on my > >computer but that didn't help. Any more suggestions? Thanks, > > > > > >"Hin Boen" <hboen@borland.com> wrote in message > >news:402ab5b7@newsgroups.borland.com... > > > > > >>Hi Yu, > >> > >> > >> > >>>after I suspended the project for debugging > >>> > >>> > >>When the VM in the suspended mode, press "Show Current Frame" button, see > >> > >> > >if the local variable is also shown in the current frame. "Show Current > >Frame" button is the rightmost button located on the button of JBuilder > >screen. If you do see the local variables, could you move the mouse over any > >of those local variables in the editor, and see if the tool tips value is > >displayed? > > > > > >> > >> > >>>I can't make the Expression Insight and tool tips features > >>> > >>> > >>To display the Expression Insight window, you need to hold down the ctrl > >> > >> > >key, and move the mouse to the expression that you want to evaluate. To see > >the tool tips value, just move the mouse to the expression that you want to > >evaluate. > > > > > >>Thanks > >>Hin > >> > >>yu wrote: > >> > >> > >> > >>>Thanks for your response, Hin. I did use -g option when compiling the > >>>codes. I also used the Project Properties with the "Source, line and > >>>variable information" for Debug options. It didn't work either. Even > >>> > >>> > >when > > > > > >>>I tried the "Welcome.jpx" and other examples provided by "JBuilder", I > >>> > >>> > >can't > > > > > >>>make the Expression Insight and tool tips features work after I suspended > >>>the project for debugging. This is so frustrating. Please let me know > >>> > >>> > >if > > > > > >>>you or anybody in the newsgroup would have more suggestions. Thanks. > >>> > >>> > >>> > >>>Bruce > >>> > >>>"Hin Boen" <hboen@borland.com> wrote in message > >>>news:4027eb90$1@newsgroups.borland.com... > >>> > >>> > >>> > >>> > >>>>It seems to me that your class files do not have any debug information. > >>>>Please make sure your application is compiled with debug information > >>>>option. If you compile your application with javac, you need to use -g > >>>>option. If you compile your application within JBuilder, see Project | > >>>>Project Properties..., select Build tab, select Java tab > >>>> > >>>>Thanks > >>>>Hin > >>>> > >>>>yu wrote: > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>Hi, > >>>>> > >>>>> > >>>>> > >>>>>I tried to use the JBuilder 8 SE version to debug my projects. Every > >>>>> > >>>>> > >>>>> > >>>>> > >>>time > >>> > >>> > >>> > >>> > >>>>>I used the debugger to see variable values with the Expression Insight > >>>>> > >>>>> > >>>>> > >>>>> > >>>and > >>> > >>> > >>> > >>> > >>>>>tool tips features, it doesn't show those variable values. If I use > >>>>> > >>>>> > >>>>> > >>>>> > >>>control > >>> > >>> > >>> > >>> > >>>>>key and the right mouse click, it always shows the variable <not in > >>>>> > >>>>> > >>>>> > >>>>> > >>>scope> > >>> > >>> > >>> > >>> > >>>>>message. What am I doing wrong or this feature is not available in the > >>>>>JBuilder 8 SE version? Many thanks, Bruce > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>> > >>> > >>> > >>> > > > > > > > > >
Technical Details
Message-ID:
<402bfe18$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4025814c$1@newsgroups.borland.com> <4027eb90$1@newsgroups.borland.com> <402a6c21@newsgroups.borland.com> <402ab5b7@newsgroups.borland.com> <402bc220$2@newsgroups.borland.com> <402bc4f7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5c5,4194eead2bfcdcfa X-Google-Attributes: gidff5c5,public X-Google-ArrivalTime: 2004-02-12 14:40:35 PST From: "yu" <yuwang@indiana.edu> Newsgroups: borland.public.jbuilder.debugger References: <4025814c$1@newsgroups.borland.com> <4027eb90$1@newsgroups.borland.com> <402a6c21@newsgroups.borland.com> <402ab5b7@newsgroups.borland.com> <402bc220$2@newsgroups.borland.com> <402bc4f7$1@newsgroups.borland.com> Subject: Re: jbuilder debugger Expression Insight and tool tips don't work Date: Thu, 12 Feb 2004 17:27:35 -0500 Lines: 217 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 156.56.66.139 Message-ID: <402bfe18$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1076624920 156.56.66.139 (12 Feb 2004 14:28:40 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail