Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: SteveC00k on December 22, 2017, 03:09:45 PM

Title: Debugging code
Post by: SteveC00k on December 22, 2017, 03:09:45 PM
Can someone please help me with this.
I am trying to debug and I am unable to get the vb script to output to the status line.
Just some sample code please.
Thanks.
Here is the code clip:
Code: [Select]
  ToolRadius = ToolDiameter / 2
  Message( "Tool Radius is " & ToolRadius )
Title: Re: Debugging code
Post by: TPS on December 22, 2017, 03:13:06 PM
Hello,

it's working here, if i run it in the VB Scripter Window.
Title: Re: Debugging code
Post by: SteveC00k on December 22, 2017, 03:36:41 PM
I look in the log file and it does not work.
What do I have to do to troubleshoot this?
Title: Re: Debugging code
Post by: TPS on December 22, 2017, 03:41:37 PM
it will only Show up in logfile if text is different.

i.e. Message( "Tool Radius 1 is " & ToolRadius )
Title: Re: Debugging code
Post by: TPS on December 23, 2017, 03:39:52 AM
i also figured out
Code: [Select]
 message("Message1")
  message("Message2")
is not working, means is not showing up in logfile.
Code: [Select]
 message("Message1")
  sleep(100)
  message("Message2")
  sleep(100)
is working.

Thomas