Page 1 of 1

Debugging with commandline parameters

Posted: Fri Jun 21, 2013 10:40 am
by paqogomez
I have a project in Installaware 10 that has 3 command line parameters that are passed to it from ant on my continuous build server.

The problem that I'm having is that because some of the commands and paths rely on these parameters I cannot debug the project without it erroring.

Is there a way to step through a project (debug) and still pass in some kind of hard coded parameters?

Im thinking of something similar to VS where you can pass in command line arguments in the debug tab of the project.

Thank you.

Re: Debugging with commandline parameters

Posted: Mon Jun 24, 2013 7:03 am
by FrancescoT
Dear User,

unfortunately, it is not possible to specify in the IA IDE command line arguments while debugging.

As workaround, you can forcibly set at the very beginning of your script, the values of those variables that you currently pass via command line.
You could place them CONDITIONALLY within a custom compiler variable.

For example;

Code: Select all

[compiler if Variable DEBUG Equals TRUE]
Set Variable MYVAR to MYVALUE
[compiler end]


Obviously, do not forget to set the above custom compiler variable as FALSE when you completed your debugging phase.

Regards