Why Doesn't -debug Work the Same in My RCP Application as in Eclipse? - Stack Overflow

I added the -debug flag and specified an .options file path in MyRCPApplication.ini. However, when I la

I added the -debug flag and specified an .options file path in MyRCPApplication.ini. However, when I launch my RCP application, a command prompt window pops up before the application starts, but it does not display any output.

In contrast, when running eclipse.exe with the -debug option, the command prompt does show debug messages.

What I've Tried: Verified that the .options file is correctly formatted. Checked if logging is enabled in my application. Ensured the -debug flag is correctly passed in the .ini file(ini). My Question: Why doesn't my RCP application's debug command prompt show any output like Eclipse does? Is there something else I need to configure?

--launcher.library
C:/Users/xxx/AppData/Local/xxx/pool/plugins/.eclipse.equinox.launcher.win32.win32.x86_64_1.2.700.v20221108-1024
-configuration
C:/Users/xxx/AppData/Local/xxx/xxx/xxx.xxx/0/cfg
-data
C:/Users/xxx/AppData/Local/xxx/xxx/xxx.xxx/0/data
-debug
-install
C:/Users/xxx/AppData/Local/xxx/xxx/xxx.xxx/0/install
-showSplash
splash.bmp
-startup
C:/Users/xxx/AppData/Local/xxx/pool/plugins/.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
-vmargs
-DtoolBarIcon=xxx.png
--add-modules=ALL-DEFAULT
--add-opens=java.base/java=ALL-UNNAMED
-DpaceBaselineVMArg64=true
--add-opens=java.base/sun.www.protocol.https=ALL-UNNAMED
--add-opens=java.desktop/com.sun.imageio.plugins.tiff=ALL-UNNAMED
-Xlog:gc=debug:file=gc.log:none
-Diap.clientcontainer.handleInvalidCerts=true
--add-opens=java.xml/javax.xml=ALL-UNNAMED
-Dsun.inetaddr.ttl=xxx
-Dsun.http.retryPost=false
--add-opens=java.base/sun.www.protocol.http=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
-Dosgi.requiredJavaVersion=17
-Dosgi.dataAreaRequiresExplicitInit=true
--add-modules=ALL-SYSTEM
--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
-Dlauncher.configuration=C:/Users/xxx/AppData/Local/xxx/launcher/cfg/
-DJRE_HOME=C:/Users/xxx/AppData/Local/xxx/xxx/xxx.xxx/0/install/jre
-Dlauncher.workspace=C:/Users/xxx/AppData/Local/xxx/launcher/data/
-Dcxxx.instanceId=0
-DJAVA_HOME=C:/Users/xxx/AppData/Local/xxx/xxx/xxx.xxx/0/install/jre
-Dcxxx.cd.username=xxx
-Xmx6g

.options file

  .eclipse.ui/perf/showHeapStatus=true
.eclipse.ui/listeners/IWorkbenchWindow.IPartListener=true
.eclipse.ui/listeners/IWorkbenchPartReference=true
.eclipse.ui/perf/contentTypes=200
.eclipse.ui/trace/graphics=true
.eclipse.ui/debug/job.stale=true
.eclipse.ui/perf/perspective.switch=800
.eclipse.ui/perf/workbench.restore=30000
.eclipse.ui/trace/handlers.verbose=true
.eclipse.ui/trace/handlers.verbosemandId=
.eclipse.ui/debug/showAllJobs=true
.eclipse.ui/experimental/menus=true
.eclipse.ui/listeners/IWorkbenchWindow.IPerspectiveListener=true
.eclipse.ui/perf/workbench.start=45000
.eclipse.ui/trace/contexts=true
.eclipse.ui/listeners/IWorkbenchWindow.IPageListener=true
.eclipse.ui/listeners/IWorkbenchPage.IPartListener=true
.eclipse.ui/trace/operations.verbose=true
.eclipse.ui/trace/commands=true
.eclipse.ui/debug/swtdebug=true
.eclipse.ui/perf/page.listeners=200
.eclipse.ui/debug/workingSets=true
.eclipse.ui/trace/handlers.performance=true
.eclipse.ui/trace/contexts.verbose=true
.eclipse.ui/debug/swtdebugglobal=true
.eclipse.ui/trace/keyBindings=true
.eclipse.ui/trace/keyBindings.verbose=true
.eclipse.ui/trace/sources=true
.eclipse.ui/perf/part.listeners=200
.eclipse.ui/debug=true
.eclipse.ui/listeners/IWorkbenchPage.IPartListener2=true
.eclipse.ui/debug/declaredImages=true
.eclipse.ui/trace/operations=true
.eclipse.ui/trace/perspectives=true
.eclipse.ui/perf/part.control=800
.eclipse.ui/perf/part.activate=200
.eclipse.ui/perf/perspective.create=800
.eclipse.ui/perf/earlyStartup=100
.eclipse.ui/listeners/IWorkbenchPage.IPropertyChangeListener=true
.eclipse.ui/perf/uijob=200
.eclipse.ui/trace/contexts.performance=true
.eclipse.ui/trace/handlers=true
.eclipse.ui/perf/part.create=800
.eclipse.ui/debug/contributions=true
.eclipse.ui/perf/part.input=200
.eclipse.ui/trace/multipageeditor=true
.eclipse.ui/perf/part.init=800
.eclipse.ui/listeners/IWorkbenchWindow.IPartListener2=true
.eclipse.ui/perf/perspective.listeners=200

Any insights would be appreciated. Thanks in advance!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745299148a4621326.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信