>> If you want to use the jdb list command, you have to tell jdb where the
source files are located. It's been a while since I used jdb commands
directly, however, I believe there is a jdb command line option for
specifying a "source path" (as opposed to a "class path"). <<
I believe the command is "use".
i.e. use /usr/local/java1.0/src:~/myproject
Gus
Paul Kinnucan wrote:
> At 10:55 AM 7/20/99 -0400, you wrote:
> >Paul -
> >
> > from .emacs...
> >
> >(custom-set-variables
> > '(jde-compile-option-debug (quote ("all" (t nil nil))))
> > '(jde-run-application-class
> >"com.qwest.cnms.dnets.frame.internalReporting.batch.ReportDataLoader")
> > '(jde-compile-option-deprecation t)
> > '(jde-db-source-directories (quote
> >("d:/Frame/src/com/qwest/cnms/dnets/frame/internalReporting/batch/"
> >"d:/Frame/src/com/qwest/cnms/dnets/common/logging/")))
> > '(jde-run-option-application-args (quote
> >("./ReportDataLoader.properties")))
> > '(jde-compile-option-directory "d:/Frame/classes")
> > '(jde-run-working-directory
> >"d:/Frame/classes/com/qwest/cnms/dnets/frame/internalReporting/batch")
> > '(jde-global-classpath (quote
> >("d:\\jdk1.1.6\\lib\\classes.zip;d:\\Frame\\classes")))
> > '(jde-db-option-application-args (quote
> >("./ReportDataLoader.properties"))))
> >
> >
> > When I run in debug mode, here is the output
> >
> >cd d:/Frame/classes/com/qwest/cnms/dnets/frame/internalReporting/batch
> >jdb -classpath d:\jdk1.1.6\lib\classes.zip;d:\Frame\classes
> >com.qwest.cnms.dnets.frame.internalReporting.batch.ReportDataLoader
> >./ReportDataLoader.properties
> >
> >Initializing jdb...
> >Warning: JIT compiler "symcjit" not found. Will use interpreter.
>
>0x18c8080:class(com.qwest.cnms.dnets.frame.internalReporting.batch.ReportDat
> >aLoader)
> >> Breakpoint set in
> >com.qwest.cnms.dnets.frame.internalReporting.batch.ReportDataLoader.main
> >> run com.qwest.cnms.dnets.frame.internalReporting.batch.ReportDataLoader
> >./ReportDataLoader.properties
> >
> >Stopped at line 40 in ReportDataLoader.java
> >main[1] running ...
> >main[1] use
> >d:\jdk1.1.6\lib\classes.zip;d:\Frame\classes
> >main[1] list
> >Unable to find ReportDataLoader.java
> >main[1]
> >
> > So, "use" is getting the wrong value? What I want to do is see
> >whichever source file is in my project in order to set breakpoints in that
> >file. What am I doing wrong??
> >
> > Thanks for your help...
> >
> >
> >> -----Original Message-----
> >> From: Paul Kinnucan [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, July 20, 1999 10:35 AM
> >> To: D'Elia, Kevin E.; 'JDE Users Group'
> >> Subject: Re: Problems with debug mode
> >>
> >>
> >> At 09:46 AM 7/20/99 -0400, D'Elia, Kevin E. wrote:
> >> >Hello,
> >> >
> >> > I am trying to debug my application using JDE...when I
> >> ask to list
> >> >the contents of the file I am debugging, I get an "Unable to locate"
> >> >message...I have my db_source_paths set to the appropriate
> >> location, with
> >> >both paths ending in a "\"...I am on Windows NT...
> >> >
> >>
>
> I'm sorry I didn't realize you were invoking a jdb command directly in the
> command window, thereby short-circuiting the JDE. I don't know why you are
> doing this. If correctly configured, the JDE locates and opens the source
> file containing the line at which the debugger is currently stops and
> displays a cursor at the line. That's the point of using the JDE rather
> than using the jdb list command to display the source.
>
> If you want to use the jdb list command, you have to tell jdb where the
> source files are located. It's been a while since I used jdb commands
> directly, however, I believe there is a jdb command line option for
> specifying a "source path" (as opposed to a "class path"). You need to
> specify this option for the list command to work. Please review the jdb
> documentation for more information.
>
> - Paul
>
> >> Hi Ken,
> >>
> >> Is jde-db-source-paths set to a LIST of paths. A common
> >> mistake is to set
> >> this variable to a semicolon- or colon-delimited STRING of paths.
> >>
> >> Paul
> >>
> >>
> >>
> >>
> >>
> >>