× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Smith, Mike skrev:
I'm not sure how to fix this. Is there a way for me to debug the java
program outside of WDSC? I have put System.out.println at the point of
the email, but they don't print unless I run it in WDSC.

You can use WSDC/Eclipse to debug such a program if you start it with the proper voodoo incantations.

(See http://java.sun.com/javase/6/webnotes/trouble/TSG-Desktop/html/gchfp.html for details)

I generally always use the "transport=dt_socket" flavor as it allows me to debug on other machines too, but requires an available network socket.

Instead of using "java ..." use "java -Xdebug -Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=y ...." where "..." is the rest of your command.

Then you can use the "Run" -> "Run..." -> "Remote Java Application" configuration to do a "Standard (Socket Attach)" debugging where you connect to localhost port 8888.
Then F8 will start your program inside the debugger :)

/Thorbjørn

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.