Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to debug script in an iX Developer project.
PostPosted: Mon Jul 25, 2011 2:33 pm 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

Offline
You will need to install Visual Studio 2010 or Visual C# 2010 Express.

iX Developer must be configured to target the correct Visual Studio executable in order for the debugging to work. You can configure the target executable under "iX" -> "Options" -> "Script Debugger options" -> "Debugger".

Attachment:
ix_options.JPG
ix_options.JPG [ 20.6 KiB | Viewed 10758 times ]


iX Developer configured for Visual C# 2010 Express.

Attachment:
ix_options2.JPG
ix_options2.JPG [ 27.43 KiB | Viewed 10758 times ]


Press the debug button to validate the project and start the external debugger with a generated project file.

Attachment:
debug_button.JPG
debug_button.JPG [ 29.92 KiB | Viewed 10758 times ]


If you get a compile error about .NET Framework 4.0 not being installed, you can change the project settings to target the ".NET Framework 3.5" and re-compile.

Attachment:
target_3_5.JPG
target_3_5.JPG [ 60.24 KiB | Viewed 10758 times ]


Start debugging. If you get an exception you can try pressing F5 to continue.

Attachment:
pinvoke_exception.JPG
pinvoke_exception.JPG [ 90.49 KiB | Viewed 10758 times ]


If you continue getting exceptions and are unable to debug your project, you can change your workspace to a "Panel Type" of PC and debug. You may want to do this after making a copy of your project.

Attachment:
settings_pc.JPG
settings_pc.JPG [ 58.82 KiB | Viewed 10758 times ]

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: