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 |
|
|