Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Debugging strategy in webfocus ..?
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Debugging strategy in webfocus ..?
 Login/Join
 
Platinum Member
posted
Hi All,
can someone explain me the Debugging strategy in webfocus.
please suggest me the best way that Debugging is accomplished in webfocus tool.
suppose if i get an error in webfocus then suggest me the best way to approach to get rid of the error.

thanks all..

This message has been edited. Last edited by: Kerry,


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Reply With QuoteReport This Post
Expert
posted Hide Post
This very much depends on the type of error you get.

If the agent crashes, then you will probably have to turn tracing on, on the server.

If you get an error, always check the first error found, not the last.

There should be a line number with the error, it should be the line the error is on. Sometimes it can be the previous error.

Always research the error, understand what the message means, and any hints as to what the error is about, like the field name or column number, etc.

With difficult errors, I always start breaking the report down, to find the cause, Add a breakpoint (-EXIT), and then test to see if the report works to this point correctly.

Turn code echoing on with -SET &ECHO=ALL;, this can highlight issues.

Turn SQL tracing on with:
SET TRACEOFF  = ALL
SET TRACEON   = SQLAGGR//CLIENT
SET TRACEON   = STMTRACE//CLIENT
SET TRACEON   = STMTRACE/2/CLIENT
SET TRACEUSER = ON


This could highlight issues with SQL generation against the tables.

There are many more things that could be done, but as mentioned before, it is relative to the type of debugging needed.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6270 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
thanks WAZ..


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Sure wish we could step through/over over code, inspect variables, set watches etc. like a real IDE. Setting breakpoints and staring at another window is a real PITA.

Just my 2-cents worth. Wink


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
Well, I think debugging a WebFOCUS program is quite easy and very manageable - after all it's a reporting ;language, not much can go wrong if you write good, clean code.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
But still, even if you do have the most clean code, it is possible that to the innocent user/developer it seems that strange things are happening. And then it is good to know what debugging option you have available to you.


GamP

- Using AS 8.2.01 on Windows 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
They've been well documented in FocalPoint.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
Does anyone remember the, I think, mainframe Modify, where you could step through the process, and check variables. I think it was also in PC/FOCUS, and FOCUS Six.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6270 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Sure thing, MODIFY FILE xxx DEBUG ...
I seem to remember that there is also a debug feature available for maintain. Don't exactly remember how to use it, though.


GamP

- Using AS 8.2.01 on Windows 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
Platinum Member
posted Hide Post
With MODIFY FILE xxx DEBUG just look at //HLIPRINT DD statement.

Yes I still use the mainframe for for somethings. When faced with a 250 million records with a record length of 5000 characters and three occurs 24 segments, I will take that good old mainframe channel speed anytime Smiler


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



 
Posts: 129 | Registered: June 01, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
When debugging, the first question is where is the error happening. Is it in the Dialogue Manager, the data base retrieval (SQL etc), the table request, the Web-focus style sheet, the java script or the HTML?

To help locate the problem I will SET XRETREIVAL OFF, comment out the style sheet, use the previous mentioned -SET &ECHO=ALL; and of course the JAVA script debugger.


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



 
Posts: 129 | Registered: June 01, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Debugging strategy in webfocus ..?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.