cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
HeikoOtt
Level 4

Q:How to debug a custom bean...

Hi,
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
Labels (1)
0 Kudos
(4) Replies
jamesswan
Level 3

this is how I usually do it:

1) kick off your installer from the commandline with the debug parameters
eg.
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,
James.
0 Kudos
HeikoOtt
Level 4

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!
Heiko
0 Kudos
jamesswan
Level 3

Hi Heiko,

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


...



James.
0 Kudos
HeikoOtt
Level 4

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!

Regards,

Heiko
0 Kudos