View Full Version : Q:How to debug a custom bean...

01-04-2006, 03:23 AM
I'm new to Installshield MP and wonder how to perform a debugging session of a custom bean for example in Eclipse. I didn't find any information related to this in the documentation or this forum...

However, it might be clear by concept to long-time IS MP developer. Can someone please point me to the related information?

Thanks in advance & best regards
Heiko Ott

01-04-2006, 04:35 PM
this is how I usually do it:

1) kick off your installer from the commandline with the debug parameters
java -Xdebug -Djava.complier=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5555 -jar setup.jar

note: choose a port that is not in use

2) from eclipse
a) select the debug perspective
b) add a break point in the required class
c) select menu item "run > debug"
d) select "Remote Java Application" item
e) select new, and enter "localhost" and the port you specified above
f) click debug
g) step through your code

note: this is for installer runtime, not build time

Good luck,

01-05-2006, 06:28 AM
Hi James,

thanks for your help!

You approach makes sense to me - I can connect the debugger and everything seems to be ok. However the breakpoints in my beans are ignored. Breakpoints in customcode are active.

Do you have any idea what's going on?

Thanks in advance!

01-05-2006, 04:02 PM
Hi Heiko,

did you compile your classes with debug information?
eg. if you are using ant, something like:

<javac debug="true" srcdir="${src}" destdir="${bin}">


01-09-2006, 08:25 AM
Hi James,

yes - of course. The eclipse debugger gives feedback if the line numbering information is missing...

I'll go thru it with a J developer who's now back from vacation.
Thanks for your support so far!