Article View: comp.os.os2.programmer
Article #1376Re: Problem with WM_ACTIVATE.
From: David Bolen
Date: Thu, 03 Sep 1992 11:10
Date: Thu, 03 Sep 1992 11:10
41 lines
2816 bytes
2816 bytes
In article <d#lnmz+.daveb@netcom.com> daveb@netcom.com (Dave Briccetti) writes: >dic5340@hertz.njit.edu (David Charlap) writes: >: Not really. You'll have to remote-debug it. You can't run a debugger >: on the same machine as the PM code you're debugging. It halts lots of >: things. > >What??? I've been doing it for years. Occasionally I'll have to put >printf's in, but most of the time I do quite well with Codeview or IPMD. Well, I think David's comment should have been more along the lines of it can be somewhat difficult (or dangerous perhaps?) to run a debugger on the same machine as the PM code you are developing, but it's not impossible. And until IPMD that debugger had to be a text mode debugger (ie: you couldn't use Multiscope in PM mode when debugging PM applications), and you had better make sure not to stop your program at a breakpoint in a message procedure and then Ctrl-ESC out of the debugger back to the PM screen. Instant system hang. This all relates back to the single input queue for applications and since the debugged application was processing a message (and at a breakpoint), you couldn't use the keyboard/mouse to switch back to the debugger to continue the application. Personally, I've done all of my PM debugging using CodeView (and now IPMD) on the same machine as the code I was debugging. I've also hung (and had to reboot) my machine a good number of times under CodeView when reflex took over and I Ctrl-ESC'd back to PM while still at a breakpoint. [It's that, "start-pressing-the-ke...SH*T!" syndrome :-) at least CAD still worked] Anyway - IPMD has different debugging modes (synchronous/asynchronous I think - I haven't played with them much), that is supposed to take care of this, allowing you to use the PM debugger to debug PM applications. I haven't yet had a chance to use it, but it sounds nice. -- David -- /-----------------------------------------------------------------------\ \ David Bolen \ Internet: db3l@ans.net / | Advanced Network & Services, Inc. \ Phone: (914) 789-5327 | / 100 Clearbrook Road, Elmsford, NY 10523 \ Fax: (914) 789-5310 \ \-----------------------------------------------------------------------/
Technical Details
Message-ID:
<1992Sep03.150929.24455@ans.net>Path:
arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!news.ans.net!ans.net!db3lReferences:
<1992Sep1.225846.23143@njitgw.njit.edu> <d#lnmz+.daveb@netcom.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!news.ans.net!ans.net!db3l From: db3l@ans.net (David Bolen) Subject: Re: Problem with WM_ACTIVATE. Sender: news@ans.net (News Administrator) Message-ID: <1992Sep03.150929.24455@ans.net> In-Reply-To: daveb@netcom.com's message of Thu, 03 Sep 92 02: 51:23 GMT Date: Thu, 3 Sep 1992 11:10:57 GMT References: <1992Sep1.225846.23143@njitgw.njit.edu> <d#lnmz+.daveb@netcom.com> Organization: Advanced Network & Services, Inc. - Elmsford, NY Lines: 41