anthonykh

S7-1500 Breakpoints

2 posts in this topic

In Portal 15, I use breakpoints to debug my Structure Text code, the breaks work fine, but the values of the variables keep disappearing even when I slide the horizontal or vertical slidebars. How do I keep them from disappearing?

Share this post


Link to post
Share on other sites

A bit off-topic but main comes handy.

Breakpoints is as powerfull as dangerous tool. That's why I prefer writing some spy code into my loops.

exemple :

FOR a := 0 TO 9 BY 1 DO
	// Code
	IF a == 1 THEN
		MySpy := MyValue;
	END_IF;
	// More code
END_FOR;

The main advantages are :

 - It DOES NOT STOP scanning

 - Spyed value is consistent

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now