VisionPro - About debugging in scripts


Preface

When helping colleagues debug projects, because the script in vp cannot intuitively see the internal operation, the debugging function needs to be used, so it is recorded here.


1. VisionPro script turns on debugging function

Select the release mode of the script page to debug, and uncomment the following three lines of code.
insert image description here

2. Open vs. attach

Open the vs interface and click the Attach button to select the process.
insert image description here
Find vp-related processes and add additional ones.
insert image description here
Run visionpro,when the script works(Note here, after the correct setting, the debugging interface has not yet popped up. It is considered that there is an error before the input of the relevant tool, and the resulting tool does not run normally, and the script under the tool will not run either), and it will jump into the vs debugging interface .
insert image description here

ps

Today I encountered an interface that does not require additional processes. After setting up the vp script for debugging and running it, the background VS (while debugging other software) automatically pops up. I will update when I have time to figure out the reason.

Guess you like

Origin blog.csdn.net/qq_42504097/article/details/129310365