Hello Guest it is November 14, 2019, 01:20:14 AM

Author Topic: Debugging code  (Read 2127 times)

0 Members and 1 Guest are viewing this topic.

Debugging code
« 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 )

Offline TPS

*
  •  1,406 1,406
    • View Profile
Re: Debugging code
« Reply #1 on: December 22, 2017, 03:13:06 PM »
Hello,

it's working here, if i run it in the VB Scripter Window.
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Debugging code
« Reply #2 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?

Offline TPS

*
  •  1,406 1,406
    • View Profile
Re: Debugging code
« Reply #3 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 )
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline TPS

*
  •  1,406 1,406
    • View Profile
Re: Debugging code
« Reply #4 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
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.