The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Can't run/debug LabTalk in Origin7Pro??
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

g.smith@bi1

UK
2 Posts

Posted - 07/11/2002 :  04:21:36 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
In 6.1, one could run and debug LabTalk scripts (*.ogs) in the LabTalk editor. Although the new CodeBuilder can open these files, it does not appear to be possible to run them! The "!" button doesn't do anything, and the Debug/Go (F5) menu item is greyed out. What am I doing wrong??
Cheers,
Godfrey

CStorey

Canada
137 Posts

Posted - 07/11/2002 :  11:10:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I hadn't tried this in a while but, I see the same thing in Origin Pro 7SR1.

Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring
Go to Top of Page

Gary Lane

USA
150 Posts

Posted - 07/15/2002 :  12:50:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

As you mentioned there are some problems debugging OGS files in Origin 7 Release and Origin 7 SR1. Thank you for pointing them out. I have reported them to our developers for remediation.

The problems are worse in Origin 7 SR1 than in Origin 7 Release so if you need to debug LabTalk OGS files and you do not need to apply the Origin 7 SR1 patch to fix other problems I recommend waiting for a later patch.

If you have not applied Origin 7 SR1 there is still some useful functionality. Try placing a breakpoint and then executing your script from the Origin GUI, Script window, or LabTalk Console. Also, try the same (set breakpoints in code first) and then click the Debug toolbar buttons if enabled. This worked for me but the buttons have a bug that causes them to become disabled when they should be enabled.

Origin 7 SR1 is less useful for debugging OGS files. You can enter debug mode as described above but you no longer have access to the Script window to check values of variables or datasets. LabTalk variables will eventually be accessible via the Debug Watch window when in debug mode.

I hope this helps.

-Gary

Edited by - Gary Lane on 07/15/2002 12:54:58
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 07/15/2002 :  4:44:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Maybe you would find Origin 7 SR1 more usful for debugging OSG file. OGS debugging has been changed to be consistent with Origin C debugging in SR1.
1. You must first set break point in your OGS file by selecting a line and then hit F9
2. After you have set a break point, you will invoke your script by running the OGS file in the normal way, like clicking on a button that invoke that OGS section.
3. Once you are in a break point, you can use F8, F10 etc to step through your codes.

4. To view a variable, move cursor to it on the OGS file and a tooltip will come up to show its values.

CP


Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000