|
next
|
 Subject: Java debuggin in XSLT problem Author: Peter Tribulski Date: 15 Nov 2001 01:50 PM
|
I am using Stylus Studio 3.1 build 069 (with advertising banner). Machine is Windows NT 4.0 SP6.
I have JDK 1.2.2 installed, and also download the JDPA 1.0, following the instructions in the Help file (copying DLL and JAR into JDK directories).
I am using IntDate example files that were installed in the C:\Program Files\eXcelon Corp\Stylus Studio\examples\javaExtension directory.
I have set ClassPath to include the directory for the example code. I have also set the Java Debug Sourcepath to the same directory, enabled the "Prompt for source..." and "Show JDPW ..." settings.
The IntDate.xsl transformation executes correctly, with the desired results. Thus I am certain that the Java Extension class is located and executed correctly.
However, I am having a problem when trying to debug into the Java Extension code. I am using the "Step Into" method - as "Step Over" will bypass the java extension logic as expected.
I do get the prompt of "Java Debugger is going to open:
C:\PROGRA~1\EXCELO~1\STYLUS~1\examples\JAVAEX~1\IntDate.java
if the file is not correct click No, and then manually choose the right file." dialog.
As this is the correct file, I click "Yes".
The screen flashes very briefly, then the cursor is located to the next line in the XSL. I never get to see and step into the Java code. (Perhaps the brief screen flash is a display of the Java source, but it is way too fast to tell for sure).
I have also tried clicking "No" to the dialog and manually selecting the same source file - no difference.
For what it is worth, I have even opened the Java Source in a different window within Stylus Studio and set breakpoints - no difference.
Am I missing something? It seems so close, as I do get the source file prompt.
Any thoughts would be appreciated,
Pete Tribulski
|
next
|
 Subject: RE: Java debuggin in XSLT problem Author: Ivan Pedruzzi Date: 15 Nov 2001 02:33 PM
|
Hi Peter,
Click on Help -> About Stylus Studio, what can you see next to "Java
Virtual Machine:" ?
If you installed JPDA after installing Studio, you should go to Tools ->
Options -> Application Settings -> Java Virtual Machine and click Auto
detect. If the JPDA is installed correctly you should see in the
Parameters edit box something like that
-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
-Djava.compiler=NONE
Another thing you can do is click on
Tools -> Options -> Java -> Debugger -> Show JDWP events in the Output
window
This should help us to understand the problem
Thank You
Ivan Pedruzzi
eXcelon Corporation
http://www.stylusstudio.com
> -----Original Message-----
> From: stylus-studio-tech Listmanager [mailto:listmanager]
> Sent: Thursday, November 15, 2001 1:58 PM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: Java debuggin in XSLT problem
>
>
> From: "Peter Tribulski"
>
> I am using Stylus Studio 3.1 build 069 (with advertising
> banner). Machine is Windows NT 4.0 SP6.
>
> I have JDK 1.2.2 installed, and also download the JDPA 1.0,
> following the instructions in the Help file (copying DLL and
> JAR into JDK directories).
>
> I am using IntDate example files that were installed in the
> C:\Program Files\eXcelon Corp\Stylus
> Studio\examples\javaExtension directory.
>
> I have set ClassPath to include the directory for the example
> code. I have also set the Java Debug Sourcepath to the same
> directory, enabled the "Prompt for source..." and "Show JDPW
> ..." settings.
>
>
> The IntDate.xsl transformation executes correctly, with the
> desired results. Thus I am certain that the Java Extension
> class is located and executed correctly.
>
> However, I am having a problem when trying to debug into the
> Java Extension code. I am using the "Step Into" method - as
> "Step Over" will bypass the java extension logic as expected.
>
> I do get the prompt of "Java Debugger is going to open:
> C:\PROGRA~1\EXCELO~1\STYLUS~1\examples\JAVAEX~1\IntDate.java
> if the file is not correct click No, and then manually choose
> the right file." dialog.
>
> As this is the correct file, I click "Yes".
> The screen flashes very briefly, then the cursor is located
> to the next line in the XSL. I never get to see and step
> into the Java code. (Perhaps the brief screen flash is a
> display of the Java source, but it is way too fast to tell for sure).
>
> I have also tried clicking "No" to the dialog and manually
> selecting the same source file - no difference.
>
> For what it is worth, I have even opened the Java Source in a
> different window within Stylus Studio and set breakpoints -
> no difference.
>
> Am I missing something? It seems so close, as I do get the
> source file prompt.
>
> Any thoughts would be appreciated,
>
> Pete Tribulski
>
>
>
> To reply: mailto:stylus-studio-tech.4093@edn.exceloncorp.com
> To start a new topic: mailto:stylus-studio-tech@edn.exceloncorp.com
> To login: http://edn.exceloncorp.com/~SSDN
>
>
|
|
|
|