Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing a program started from the dock




On Jul 8, 2007, at 10:17 PM, Travis Risner wrote:

Hi Greg & Mike,

The application is the NetBeans IDE (6.0 M10).

One other possibility although for NetBeans it might be sort of complex would be to start it up for debugging.


Something like...

java -classpath .:quaqua-filechooser-only.jar -Xdebug - Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8786 ChooserFrame

Which actually is one I was using a number of times the last couple of days.
Then I would use JSwat to attach a remote debug session that would allow me to get stack traces, breakpoints, etc.
(I use an older version of JSwat, newer versions seem too tied to NetBeans for me to be able even to figure out how to run it).
If its simple enough you just use the jvm command line sample debugger tool jdb.


Something like...

jdb -classpath .:quaqua-filechooser-only.jar ChooserFrame
Initializing jdb ...
> run
run ChooserFrame
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started:

Looking at local variables didn't seem to work this way while it did with JSwat so you might find some reason you prefer one way over the other.

NetBeans might again have too complicated a start up to do this, and of course usually I think this is the sort of thing you want a IDE for. Not the sort of thing you want to use on a IDE.

Mike Hall        hallmike at att dot net
http://www.geocities.com/mik3hall
http://sourceforge.net/projects/macnative



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Killing a program started from the dock (From: Greg Guerin <email@hidden>)
 >Re: Killing a program started from the dock (From: Travis Risner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.