Debugging Scripts and Writing to Output

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
standeven
Posts: 5
Joined: Fri Dec 12, 2014 1:24 pm

Debugging Scripts and Writing to Output

Post by standeven »

Hello,

I'm new to iX Developer, and am wondering if there are any methods to help with debugging. For example, are there ways you can write to the output, or step through the code?

I've tried the following:

Console.WriteLine("test");
System.Diagnostics.Debug.WriteLine ("test");

thinking that this would write to the output window, but it did not.

Thanks

User avatar
Russ C.
Posts: 213
Joined: Thu Nov 16, 2017 3:32 pm
Contact:

Re: Debugging Scripts and Writing to Output

Post by Russ C. »

The best way is to use Visual Studio (or another compatible IDE) and set it as the debugger in the File -> Options -> Script Debugger Options.
debugging-options.png
debugging-options.png (13.91 KiB) Viewed 4457 times
Then when you click the Debug button in iX -> Project -> Debug it will launch your project in that debugger to run and step through
ix-project-tab.png
ix-project-tab.png (33.91 KiB) Viewed 4457 times
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply