05-11-2012 08:12 AM
Hello,
I'm creating step types under TS2010/CVI2010 and I'd like to fullfill these two conditions :
- For a matter of maintenability, I do not want the future users to be able to directly modify the parameters passed to the code module (I created step type properties and graphical interfaces)
- I want to be able to easily change these parameters for all instances of a given type (in case of a function prototype evolution)
The solution I found is to use substeps to call the module : the module adapters is set to "none" for the code module and the step calls the DLL function using a post step.
But this solution has a drawback : to debug this kind of substep, I cannot directly step into the code module. I need the open the right file in the adapter project and set a breakpoint in the right function. This is rather a long process.
So my questions are :
- Is the substep solution a right answer to my problem or did I miss another solution?
- Is there any way to directly step into a substep?
Thanks in advance for any advice.
Regards,
Stephane
05-22-2012 11:12 AM
1. If you're trying to prevent users from changing parameters why not just load them at run-time from a file?
2. No
05-23-2012 09:59 AM
There is no feature for stepping into substeps. In the typical use case, the user of a step type is not necessarily even aware of the substeps so generally does not want to step into them.
-Doug
05-30-2012 12:48 PM
Setting a break point inside the code module of substeps, can be a workaround.