TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Paul Edwards
from: Peter Fitzsimmons
date: 1996-10-26 02:25:24
subject: watcom debugging

PE> How do I debug PM programs under Watcom?  The following doesn't work:

 PE> wcl386 -d2 -l=os2v2_pm fred.c
 PE>   
 PE> rc fred.rc

 PE> The resultant executable appears to have no symbolic debug info,
 PE> leastway, wd won't show me the source code.

The problem is with MS's rc.exe (which comes with watcom).  It looses the
watcom debug info.

You have to save the debug info in a separate file.  WD will find it if it
has the extension *.SYM).  I think WLINK will spit this file out,  but I
use the wstrip utility:


 photo32.exe : $(OBJECTS) jpeg32.lib tiff32.lib  image.lnk pi32.res
   wlink N photo32&
  $(WC_WINDOWS_LINK_OPTIONS)&
  OPT ELIM&
  {at}image.lnk {at}lib32.lnk
  {at}wstrip photo32.exe . photo32.sym
  {at}rc pi32.res photo32.exe >rcw.log


 PE> Secondly, does Watcom have a PM-based debugger?  Although I normally
 PE> prefer a full-screen one, a PM one may be useful when debugging PM
 PE> apps.

Yes,  starting with V10.  Tt is WDW instead of WD


--- Maximus/2 3.00
* Origin: Sol 3 * Toronto * V.32 * (905)858-8488 (1:259/414)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 259/414 400 99 250/99 3615/50 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

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™.