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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Can't run/debug LabTalk in Origin7Pro??

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
g.smith@bi1 Posted - 07/11/2002 : 04:21:36 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 07/15/2002 : 4:44:48 PM
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


Gary Lane Posted - 07/15/2002 : 12:50:51 PM
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
CStorey Posted - 07/11/2002 : 11:10:23 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000