Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!dmaustin From: dmaustin@vivid.sun.com (Darren Austin - I will not instigate revolution) Newsgroups: comp.windows.x Subject: Re: Debugging XView applications Message-ID: Date: 19 Sep 90 00:53:03 GMT References: <9009181745.AA01140@zia.aoc.nrao.edu> Sender: news@exodus.Eng.Sun.COM Organization: Sun Microsystems, Mountain View Lines: 41 In-reply-to: cflatter@ZIA.AOC.NRAO.EDU's message of 18 Sep 90 17:45:21 GMT In article <9009181745.AA01140@zia.aoc.nrao.edu> cflatter@ZIA.AOC.NRAO.EDU (Chris Flatters) writes: The following reached me via direct email but the reply is probably of interest to other xpert subscribers. > I have no problem running the program as it is, but when I tried to run the > program under dbx and setting a break point in the scroll list notify > handler, my olwm just went to lunch... it just locks up. Setting a > break point in the button notify routine does not cause the same problem. > I have not tried to dbx the program on a local machine yet. The cure is simply to set the client into synchronous mode. The easiest way to do this without modifying the source code is to set a breakpoint on entry to main(). When the program reaches that point set the external variable _Xdebug to true. Using dbx: $ dbx client Loading 12345 symbols... done (dbx) stop in main (dbx) run stopped in main [blah, blah, blah] (dbx) assign _Xdebug = 1 -------------------------------------- [%] I don't know what the critical event or events are. Another tip for debugging XView programs is to use the -Wfsdb command line option, which will keep XView from doing any grabs of the server. So instead of just typing "run", type "run -Wfsdb". There are other command line options that allow you to specify that only certain types of grabs shouldn't be done by XView. You can use the -help option on any XView program to find out what what is available and how to use them. Happy debugging, --Darren -- Darren Austin | All I have to do is find a Window Systems Group | one-legged nun walking a Sun Microsystems, Mountain View | goat and I win! dmaustin@sun.com |