X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Mike C" Newsgroups: comp.os.msdos.djgpp References: <9178-Sun21Mar2004203117+0200-eliz AT elta DOT co DOT il> Subject: Re: Can debug be switched on and off? Lines: 46 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Sun, 21 Mar 2004 23:43:56 -0000 NNTP-Posting-Host: 80.6.46.20 X-Complaints-To: abuse AT ntlworld DOT com X-Trace: newsfe2-gui.server.ntli.net 1079908532 80.6.46.20 (Sun, 21 Mar 2004 22:35:32 GMT) NNTP-Posting-Date: Sun, 21 Mar 2004 22:35:32 GMT Organization: ntl Cablemodem News Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote in message news:9178-Sun21Mar2004203117+0200-eliz AT elta DOT co DOT il... > > From: "Mike C" > > Newsgroups: comp.os.msdos.djgpp > > Date: Sun, 21 Mar 2004 18:04:22 -0000 > > > > When single-stepping through the program, the "program line"s would be > > single-stepped, but the "no-step program line"s would not. > > With DJGPP/RHIDE, you could always position the cursor on the first program > > line after the #pragma trace + and press F4, which would have the same > > effect, but I found this feature really useful. > > Can you explain why is this useful even though you can use F4? > > When I use GDB, the command "until +5" will run the program until it > gets to 5 lines from the current line. That sounds like an equivalent > to what you were used to, but since you say F4 is not good enough, I'm > not sure what else you want. I found it useful because, when I had written a part of the program that worked, I could simply put the pragmas in place then forget them. After that, every time I single-stepped the program, it would just jump over that bit without my having to think about it. The bit of program it was skipping might be inside a loop. If you were using F4 for that, you would have to get to the bit that you weren't interested in, then reposition the curser where you wanted it to skip to, which may be a couple of screens down, go there, single step it to the end of the loop, then do the same thing each time through. How many times have you pressed F7 instead of F8 and gone into a function that you didn't mean to go to? In MIX-C, when you were happy that the function worked, you could simply stop it from being traced, then you didn't have to think about which key you were pressing. Of course, we can set breakpoints with Ctrl-F8, but their positions in the program change when a line is inserted or deleted, whereas the #pragmas were part of the program text.. I have been using DJGPP and RHIDE for quite a long time, so I am aware of the features it offers (well, unless there are some I am not aware of!), but believe me, I found that one sufficiently useful to prompt me to write to the news group to enquire about it. Maybe just a question of preference, but I liked it! Mike.