dbTalk Databases Forums  

D3 debugging question

comp.databases.pick comp.databases.pick


Discuss D3 debugging question in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian Bond
 
Posts: n/a

Default D3 debugging question - 10-18-2005 , 01:27 PM






Universe has a debugger command that will allow you to skip through a
subroutine when doing single-step debugging (hazy memory recalls this being
an "S").

No reference to similar functionality is in the D3 online docs. Are any of
you aware of an equivilant undocumented feature that would do what I want?


thanks



Reply With Quote
  #2  
Old   
Norman Morgan
 
Posts: n/a

Default Re: D3 debugging question - 10-18-2005 , 01:30 PM






"Brian Bond" <brian (AT) XYZXYZXYZXYZbonanzapress (DOT) com> wrote in
news:11lafkl96ufvfec (AT) corp (DOT) supernews.com:

Quote:
Universe has a debugger command that will allow you to skip
through a subroutine when doing single-step debugging (hazy
memory recalls this being an "S").

No reference to similar functionality is in the D3 online docs.
Are any of you aware of an equivilant undocumented feature that
would do what I want?
Ctrl+J will single-step the D3 debugger. You will want to do an E1
and C! first.

--
================================================== =========
Norman Morgan <> http://www.norm-morgan.com
================================================== =========
Sometimes I wake up grumpy. Other times I let her sleep.
================================================== =========



Reply With Quote
  #3  
Old   
Tracy Raines
 
Posts: n/a

Default Re: D3 debugging question - 10-18-2005 , 01:47 PM



I think what he is asking for the a switch that can be thrown that will
cause the program to enter the debugger on a subroutine call or return.
That functionality doesn't exist in D3 that I am aware of. I wish
that it did. It did exist in the Sanyo/Icon version years ago and it
was very helpful to skip the 1000+ line prompter routine.


Reply With Quote
  #4  
Old   
Ed Sheehan
 
Posts: n/a

Default Re: D3 debugging question - 10-18-2005 , 02:06 PM



From the D3 Reference manual:

n

Similar to the FlashBASIC debugger "g" command except that if
single-stepping is active, the <ctrl>+n command will step "over" any
subroutine calls.

Syntax: <ctrl>+n

Ed

"Brian Bond" <brian (AT) XYZXYZXYZXYZbonanzapress (DOT) com> wrote

Quote:
Universe has a debugger command that will allow you to skip through a
subroutine when doing single-step debugging (hazy memory recalls this
being an "S").

No reference to similar functionality is in the D3 online docs. Are any
of you aware of an equivilant undocumented feature that would do what I
want?


thanks




Reply With Quote
  #5  
Old   
Bob Little
 
Posts: n/a

Default Re: D3 debugging question - 10-18-2005 , 02:10 PM



Ed Sheehan wrote:
Quote:
From the D3 Reference manual:

n

Similar to the FlashBASIC debugger "g" command except that if
single-stepping is active, the <ctrl>+n command will step "over" any
subroutine calls.

Syntax: <ctrl>+n

Ed

The only problem is that the D3 debugger shows the line you have *just*
executed, and by that time, you are already into the subroutine.
It would be more useful if the D3 debugger (which I hate) would show you
the line you were *about* to execute.


--
Bob Little
Graphik Dimensions, Ltd.
High Point, NC


Reply With Quote
  #6  
Old   
Brian Bond
 
Posts: n/a

Default Re: D3 debugging question - 10-18-2005 , 04:01 PM



The <ctrl>+n doesn't seem to do much of anything.

Not that there's a chance it will ever happen, but just for fun, what would
improvements you like to see in a new version of the debugger? I'll start
with #1:

1 - Functionality to actually debug programs.



"Bob Little" <rlittle (AT) graphikdimensions (DOT) com> wrote

Quote:
Ed Sheehan wrote:
From the D3 Reference manual:

n

Similar to the FlashBASIC debugger "g" command except that if
single-stepping is active, the <ctrl>+n command will step "over" any
subroutine calls.

Syntax: <ctrl>+n

Ed


The only problem is that the D3 debugger shows the line you have *just*
executed, and by that time, you are already into the subroutine.
It would be more useful if the D3 debugger (which I hate) would show you
the line you were *about* to execute.


--
Bob Little
Graphik Dimensions, Ltd.
High Point, NC



Reply With Quote
  #7  
Old   
Ed Sheehan
 
Posts: n/a

Default Re: D3 debugging question - 10-18-2005 , 04:28 PM



Try using G<Enter> instead of <Ctrl>J. This might show the "before" state. I
don't have a D3 system just now to test this, so My Memory May Vary. The
manual does say that if you use C! it switches to "after." Not much use to
omit that if you want to see stuff though.

Ed

"Bob Little" <rlittle (AT) graphikdimensions (DOT) com> wrote

Quote:
Ed Sheehan wrote:
From the D3 Reference manual:

n

Similar to the FlashBASIC debugger "g" command except that if
single-stepping is active, the <ctrl>+n command will step "over" any
subroutine calls.

Syntax: <ctrl>+n

Ed


The only problem is that the D3 debugger shows the line you have *just*
executed, and by that time, you are already into the subroutine.
It would be more useful if the D3 debugger (which I hate) would show you
the line you were *about* to execute.


--
Bob Little
Graphik Dimensions, Ltd.
High Point, NC



Reply With Quote
  #8  
Old   
Mark Brown
 
Posts: n/a

Default Re: D3 debugging question - 10-18-2005 , 06:23 PM



I wrote the C and CTL+J portions of the debugger in 1980. I got tired of
having to type L+return G+return to watch my programs run. In hind sight,
it probably would have been better to combine the G + L commands instead of
the L + G, but it also would have been ton's harder.

The reason you can't single step OVER a subroutine in D3 is because part of
the subroutine calling interface is to setup a new debugger control block
for that second level program. That dbcb has its own set of controls blah
blah and it doesn't inherit them because they might not match and when it
returns it doesn't pop the old dbcb off a stack as would make sense, but
rebuilds it like it had never been there. All gut-level stuff that hasn't
changed in 20 years for only one reason: no one's around anymore who
understands it.

Mark Brown

"Ed Sheehan" <NOedsSPAM (AT) xmission (DOT) com> wrote

Quote:
Try using G<Enter> instead of <Ctrl>J. This might show the "before" state.
I don't have a D3 system just now to test this, so My Memory May Vary. The
manual does say that if you use C! it switches to "after." Not much use to
omit that if you want to see stuff though.

Ed

"Bob Little" <rlittle (AT) graphikdimensions (DOT) com> wrote in message
news:CcCdnb3AdL0o1cjenZ2dnUVZ_sudnZ2d (AT) northstate (DOT) net...
Ed Sheehan wrote:
From the D3 Reference manual:

n

Similar to the FlashBASIC debugger "g" command except that if
single-stepping is active, the <ctrl>+n command will step "over" any
subroutine calls.

Syntax: <ctrl>+n

Ed


The only problem is that the D3 debugger shows the line you have *just*
executed, and by that time, you are already into the subroutine.
It would be more useful if the D3 debugger (which I hate) would show you
the line you were *about* to execute.


--
Bob Little
Graphik Dimensions, Ltd.
High Point, NC





Reply With Quote
  #9  
Old   
Brian Bond
 
Posts: n/a

Default Re: D3 debugging question - 10-18-2005 , 06:49 PM



Sheesh!

They should change the name from "D3" to "The Flying Dutchman".


"Mark Brown" <mbrown (AT) drexelmgt (DOT) com> wrote

Quote:
I wrote the C and CTL+J portions of the debugger in 1980. I got tired of
having to type L+return G+return to watch my programs run. In hind sight,
it probably would have been better to combine the G + L commands instead of
the L + G, but it also would have been ton's harder.

The reason you can't single step OVER a subroutine in D3 is because part
of the subroutine calling interface is to setup a new debugger control
block for that second level program. That dbcb has its own set of
controls blah blah and it doesn't inherit them because they might not
match and when it returns it doesn't pop the old dbcb off a stack as would
make sense, but rebuilds it like it had never been there. All gut-level
stuff that hasn't changed in 20 years for only one reason: no one's
around anymore who understands it.

Mark Brown



Reply With Quote
  #10  
Old   
Bob Little
 
Posts: n/a

Default Re: D3 debugging question - 10-18-2005 , 07:58 PM



Brian Bond wrote:
Quote:
The <ctrl>+n doesn't seem to do much of anything.

Not that there's a chance it will ever happen, but just for fun, what would
improvements you like to see in a new version of the debugger? I'll start
with #1:

1 - Functionality to actually debug programs.
1. The afore mentioned feature of showing the line of code *before* it's
executed.
2. Keeping the watch on a variable through all subroutine calls. I.E. I
have to "re-watch" a variable each time I enter the external subroutine.
I'd like to have it stay set, so that each time I entered the sub, my
watch would still be there.
3. Being able to examine and modify any single attribute or value of a
dynamic array.

When I was on an Ultimate system, I got used to their debugger. I guess
I got spoiled.


Bob Little
Graphik Dimensions, Ltd.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.