Debugger replacement OI9.2 (OpenInsight 32-Bit)
At 13 JAN 2011 10:17:11PM Johan Liebenberg wrote:
I am trying to implement the debugger replacement code. Looking at the examples and reading the help, I managed to sort of get it to work, but with mixed results. Here is a short sample of what I did:
—————–snip—————-
Declare Function Debugger_fetch
$Insert Debugger_fetch_equates
$Insert Logical
$Insert RTI_Debug_Common
$Insert Company_Dat ; * added to get some labeled variables
Equ Version$ To '1.0.0'
Equ Crlf$ To \0D0A\
Equ Cr$ To \0D\
Equ Lf$ To \0A\
Equ Tab$ To \09\
* works!
Locallist=Debugger_fetch('LISTLOCAL')
OSWrite Locallist To 'c:\local.txt'
* not working - Lcommlist return null
Lcommlist=Debugger_fetch('LISTLABELLED')
OSWrite Lcommlist To 'c:\labelled'
—————–snip—————-
The problem is that sometimes Lcommlist=Debugger_fetch('LISTLABELLED') returns data and sometimes not.
Locallist=Debugger_fetch('LISTLOCAL') always return data.
Tried it on 2 different OI systems. Any ideas or pointer welcome!
Thanks
Johan
At 18 JAN 2011 05:30PM Bryan Shumsky wrote:
Hi, Johan. Let me start with the simplest question - are you sure the stored procedure you are running when the debugger replacement is called has named common elements?
Thanks,
- Bryan Shumsky
Revelation Software
At 23 JAN 2011 04:51PM Johan Liebenberg wrote:
Hi Bryan. Yes, we use a lot of named common variables via $includes. At 1st it didn't work, then it started working after I made changes to another part of the program. Later on I made cosmetic changes to a string I write out via OSWRite, like in the example code, and it stopped working. I traced my steps back and can not find the problem. I even deleted all the code and went back to the most basic example just calling the functions.
Thanks
At 24 JAN 2011 04:34AM [url=http://www.sprezzatura.com]Captain C, Battlestar Sprezzatura - BSG 77[/url] wrote:
Hi Johan,
Debugger_fetch() will only let you access variables that are directly accessible from the broken program, hence you can't put the labelled common statement in Debugger_Replacement() because Debugger_Fetch() doesn't look at that.
In youe example the program that caused the debug condition would need to have "$insert company_dat" included before the LISTLABELLED method in your Debugger_Replacment() would return any data.
Battlestar Sprezzatura - BSG 77
Colonial leaders in all things RevSoft
At 24 JAN 2011 04:10PM Johan Liebenberg wrote:
Thanks Captian!
Tried that out of desperation. After I posted yesterday, I tried an it started working again. Strange?