Re: jswat does not find source files others than in bin\-directory?

Nathan Fiedler <[email protected]> Fri, 2 May 2008 08:09:12 -0700 (PDT)
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
I haven't tried debugging Groovy scripts, so I'm at a loss as to what's going on. Not that I want to pass the buck, but I think the Groovy site has at least one page on debugging with JSwat. In the mean time, can you paste the output from the 'source' command? It takes the name of the class as a parameter and shows all of the meta information about that class in terms of how it locates source files. It's possible that there is a prefix in the .class file that indicates to look in "bin".

n


----- Original Message ----
From: Heiko Barrach <[email protected]>
To: [email protected]
Sent: Friday, May 2, 2008 3:46:47 AM
Subject: [jswat-user] jswat does not find source files others than in bin\-directory?

Hi folks,

I freshly installed Groovy 1.5.6 & JSWAT 4.3 (under Win XP); wrote a 
small test.groovy script which runs flawlessly in the groovyconsole.
Now when I try to debug this with JSWAT, the darn thing tells me:

"Caught: java.io.FileNotFoundException: C:\Program 
Files\jswat-4.3\bin\test.groovy (C:\Program 
Files\jswat-4.3\bin\test.groovy)"

Well, obviously, that's correct: My groovy-script is in "Z:\Groovy 
Scripts\" and I told my system so by setting a respective SOURCEPATH 
environment variable pointing to that directory -but to no avail.
(Yes, I may move the test.groovy script file manually over to the 
bin\-directory on C: which jswat expects, and it will work; but hey, 
that's a bad kludge: Whatever I change in the source file will be 
written to the script on Z: , so doesn't make it for debugging (=version 
on C:))
What it is going on here? How can I tell jswat that my scripts to debug 
reside on Z:\Groovy Scripts ???

Thanks!


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone