[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: problems enabling an installed feature
|
- From: Pascal Rapicault <pascal@xxxxxxxxxx>
- Date: Sat, 04 Jun 2005 15:33:49 -0400
- Newsgroups: eclipse.platform.rcp
- Organization: EclipseCorner
- User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)
Start the exported application with the following options (put them in
your <exe>.ini file)
-vmargs
-Xdebug
-Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-Djava.compiler=NONE
Start you rcp app, nothing will happen, this is normal
Then in your IDE, put your breakpoints in your code, and start a remote
debug session. This will attach to the VM that you started and will
start the process.
The other trick you can use to debug an exported app is to start with
-console and -noExit. This will give you an osgi console that will allow
to introspect the state of the running system.
HTH,
PaScaL
Ps: don't forget to reexport the code if you change it
Andreas Pakulat wrote:
Andreas Pakulat schrieb:
Hi,
I wrote an rcp app which checks an update-site for new features and
installs them. This is done using the org.eclipse.update.standalone
classes InstallCommand and EnableCommand. My problem is, that
EnableCommand is not working, i.e. I can't enable the feature. The
cause is the TargetSite (currently the eclipse folder) says that the
feature is already configured only that this can't be true, because
using eclipse's Configuration Manager I can see that the feature is
disabled.
So why can't I enable the feature? Oh, btw. I do all this before
launching the workbench, as the first thing inside
RcpApplication.run(), but I hope that this doesn't matter...
I got a bit further reading another thread here... I can now install and
enable the feature (there was a plugin missing from the feature that the
editor-plugin needed) as long as I do it with an export of my rcp-app.
I still cannot install and enable the feature when running the rcp-app
from within eclipse :-( Which would not be that much of a problem, if
using the installed feature would work, but it doesn't and I don't think
that debugging the exported product is as easy as debugging it inside
eclipse...
So any hint wether how to make this feature install work from within
eclipse or tips on how to debug an exported product is welcome.
Andreas