Cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in debugging mode creating TxPlcLogicBehaviorFunction .Net

Valued Contributor
Valued Contributor

Hi

 

I there any way to debug in visual studio with logic behaviour function so that from example a break point works and is not ignored at the moment it is just getting passed over

 

Regards

10 REPLIES

Re: Problem in debugging mode creating TxPlcLogicBehaviorFunction .Net

Siemens Phenom Siemens Phenom
Siemens Phenom

Never had any problem with Debugger and breakpoints in

TxPlcLogicBehaviorFunction.Evaluate()...

Re: Problem in debugging mode creating TxPlcLogicBehaviorFunction .Net

Siemens Phenom Siemens Phenom
Siemens Phenom

The debugger has of course to be connected with the PS-process, which is eMPower\tune.exe

You can either connect to an open PS: in VS press CTRL+ALT+P and attach to tune.exe

Or you directly start PS from the debugger (F5), nice because it can automatically load your test-data:

debug.jpg

Re: Problem in debugging mode creating TxPlcLogicBehaviorFunction .Net

Valued Contributor
Valued Contributor

Is it also possible to open a new Study with this command?

 

Best regards,

Mario

Re: Problem in debugging mode creating TxPlcLogicBehaviorFunction .Net

Siemens Phenom Siemens Phenom
Siemens Phenom

Sure, just set "tune.exe" as external program and " /c NewAssembler /l offline" as command line arguments.

Re: Problem in debugging mode creating TxPlcLogicBehaviorFunction .Net

Valued Contributor
Valued Contributor

but then it opens with no study open, not with a new one.

Re: Problem in debugging mode creating TxPlcLogicBehaviorFunction .Net

Siemens Phenom Siemens Phenom
Siemens Phenom

Just go to PSR -> File -> New Study...

Re: Problem in debugging mode creating TxPlcLogicBehaviorFunction .Net

Valued Contributor
Valued Contributor

but thats what I don't want to do Smiley Happy

what I want to do is a command that starts a new study and generates the model automatically though the API.

Re: Problem in debugging mode creating TxPlcLogicBehaviorFunction .Net

Siemens Phenom Siemens Phenom
Siemens Phenom

Sorry, I do not understand. I thought you wanted to debug a user logic block function...

Re: Problem in debugging mode creating TxPlcLogicBehaviorFunction .Net

Valued Contributor
Valued Contributor

oh no. sorry for baffeling you.

I just replied to GuidoDamm's post with the debug command because I wanted to modify it. 

RobSimCoder was the one who wanted to debug the logical behaviour function.