TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: MARCEL VELDHUIZEN
from: ANTON MONROE
date: 1996-07-12 06:25:00
subject: Using the 3.2 editor

MV>  Isn't there a way to find out were the runtime error occured? What does
MV>  the 'pgm-ctr' stand for if you get a runtime error? Couldn't it be used
Marcel and Tim, I'm replying to a couple of messages with one.
In the IDE use the top menu, under Compile/Find Error.  Type in the
pgm-ctr and it will recompile and show you the line number that it
corresponds to.
From the command line type PBC /RE .  It will tell
you the file name and line number that corresponds to the pgm-ctr
location.
Of course, the .bas file that you do it with has to be exactly the same
one that was compiled to make the .exe file that gave the error.  Any
changes to the source code will make it point to the wrong line.
You probably don't need PBD at all, it's intended for debugging
programs that are too big to fit in the available DOS memory along with
the PB.EXE editor/debugger.  PBD.EXE is smaller because it doesn't do
any editing or compiling.  Since I'm a long way from having that
problem, I have pretty much ignored it.
You're right, PBD is not well documented.  To use it, you need to
include the PBDEBUG information when you compile.  The online help tells
how to do that under 'Debugging'.  The thing that sometimes confuses
people is that PB.EXE is for working with source files-- the syntax is
'PB xxx.BAS'.  PBD.EXE (the debugger) is for debugging executable
files-- its syntax is 'PBD xxx.EXE'.
 * RM 1.31 1209 * Anton Monroe   70304.3663@compuserve.com
--- FidoPCB v1.4 [ff013/c]
---------------
* Origin: Sound Advice - 24 Nodes (816)436-4516 (1:280/333)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.