How can I debug acgui on UNIX/Windows?

0 Likes

PROBLEM/ABSTRACT:
How can I debug acgui on Unix/Windows and see what commands it is calling?

SOLUTION:
There are times when the gui may be hanging or giving errors that when the cli equivalent is run, do not give errors. In these situations, running the java gui in debug mode can help diagnose and further troubleshoot the problem.
It is also useful to see what commands the GUI calls to help with scripting, etc...

The below paths are based on assumptions. Please adjust where appropriate.

For Windows:

1) Open a CMD shell
2) cd C:\Program Files\AccuRev\bin

3a) For AccuRev 5.6 and later, run:
..\jre\bin\java -Daccurev.debug.acapi -cp "oro.jar;xercesImpl.jar;xml-apis.jar;fw.jar;logback-classic-1.0.1.jar;logback-core-1.0.1.jar;slf4j-api-1.6.4.jar;bizlaf-cezanne-2.3.11.29.jar" fw.MainApp

3b) For AccuRev 3.7 to 5.5, run:
..\jre\bin\java -Daccurev.debug.acapi -cp "oro.jar;xercesImpl.jar;xml-apis.jar;fw.jar" fw.MainApp

3c) For AccuRev pre-3.7, run:
..\jre\bin\java -Daccurev.debug.acapi -cp "oro.jar;xerces.jar;fw.jar" fw.MainApp

This will launch acgui and debug output is written in the command prompt.

For UNIX/Linux:

1) Open a shell window.
2) cd /opt/accurev/bin

3a) For AccuRev 5.6 and later, run:
../jre/bin/java -Daccurev.debug.acapi -Daccurev.debug.env -cp "oro.jar:xercesImpl.jar:xml-apis.jar:fw.jar:logback-classic-1.0.1.jar:logback-core-1.0.1.jar:slf4j-api-1.6.4.jar:bizlaf-cezanne-2.3.11.29.jar" fw.MainApp

NOTE: Any jar files with version numbers may change between releases, so change the command line to match the jar file names that you have installed.

3b) For AccuRev 3.7 to 5.5, run:
../jre/bin/java -Daccurev.debug.acapi -Daccurev.debug.env -cp "oro.jar:xercesImpl.jar:xml-apis.jar:fw.jar" fw.MainApp

3c) For AccuRev pre-3.7, run:
../jre/bin/java -Daccurev.debug.acapi -Daccurev.debug.env -cp "oro.jar:xerces.jar:fw.jar" fw.MainApp

This will launch acgui and debug output is written in the command prompt.


For more information contact AccuRev Support.

Comment List
Related
Recommended