If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

How to debug custom authenticator?

Started by SerhanY, 23 Feb 2010 02:45:00 PM

Previous topic - Next topic

SerhanY

Any help is appreciated.

I am using eclipse, and ideally would like to debug via IDE.

Writing out log lines is the least desirable option, but having hard time to output to any log files also. How can I redirect System.out to a file?

Thanks.

SerhanY

Update: Figured out how to attach the debugger. It involved modifying the xml that launched the cognos server to enable the debugging via a port, and attaching the ide to that port.

platipuss

I know the original poster found this but for others that find this post:

\c8\bin

Copy startup.bat to debug.bat

Right click on debug.bat and goto properties, remove the read only tag on the file then uncomment the line below and
save.

rem set DEBUG_OPTS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=9091,server=y,suspend=y -Djava.compiler=NONE

In eclipse goto the debug options "Debug ..."

New remote java application

localhost:9091

Start cognos server through the configuration tool

Then goto "Computer Management" and stop the "Cognos 8" service under services

Run the debug.bat

Then in eclipse debug the project and wait for the cmd prompt window to say
"The dispatcher is ready to process requests."