DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Step-into subroutines issues; DIAdem debug mode

DIAdem debug mode doesn't step into the called subroutuines and remains in the main portion of the script when executing step-into.  Does DIAdem have the capabilities to step into subroutines? 

 

I have both the main file and the file with the subroutine open and have even tried putting all the subroutines in the same file but still doesn't step into. 

0 Kudos
Message 1 of 2
(2,420 Views)

Hi MD43,

 

This capability does exist in DIAdem -- make sure you're doing the following and it should step into any subprocedure that is called in the main code:

 

1.)  Ensure that the subprocedure is called in the main portion of the code.  If it is not called, you cannot step into it using the debugging tools. 

2.)  Place a breakpoint one line after the "Sub <FunctionCall()>" line.

3.)  Run the debugger.  You should be able to step into the code from there.  

 

When I reproduced this, I had everything in the same script (both the subprocedures and the calls to them).  

Matt | NI Systems Engineering
0 Kudos
Message 2 of 2
(2,381 Views)