cancel
Showing results for 
Search instead for 
Did you mean: 

See which code triggers an event in the event list

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello,

 

I am having a problem where an "Out" event of a buffer is deleted causing the exit ctrl of the buffer not to trigger. Is there a way to see which line of code triggers the deletion of the "Out" event in the event list?

 

Choosing "show Receiver" and "show Sender" only centers the Frame on the buffer and MU respectively, but does not show any source code (I am thinking something like a call chain etc.).

 

The trace log only shows the event list as well.

 

Is there a way?

 

Thank you.

2 REPLIES

Re: See which code triggers an event in the event list

Siemens Phenom Siemens Phenom
Siemens Phenom

Double click the line of the Out event in the Event Debugger. This will set a breakpoint (S) for this event. Then continue the simulation. When the event is being deleted, Plant Simulation will open a message box asking you if you want to stop the simulation. Click the "Yes" button. If the event was deleted by a Method, the execution was halted in the next line.

Re: See which code triggers an event in the event list

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Thank you, it worked as expected. I think my debugger somehow showed up behind some other windows when I tried earlier which caused my confusion!