Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!apple!mdtaylor From: mdtaylor@Apple.COM (Mark Taylor) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C Debugger (was Re: Looking for a Debugger.) Message-ID: <11270@goofy.Apple.COM> Date: 15 Nov 90 03:17:23 GMT References: <1990Nov13.223209.16268@midway.uchicago.edu> <1990Nov14.220406.17241@midway.uchicago.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 31 In article <1990Nov14.220406.17241@midway.uchicago.edu> francis@daisy.uchicago.edu (Francis Stracke) writes: >In article phils@chaos.cs.brandeis.edu (Phil Shapiro) writes: >>In article <1990Nov13.223209.16268@midway.uchicago.edu> gft_robert@gsbacd.uchicago.edu writes: >>If you select an expression in the data window (any expression that >>doesn't have a function call), you can copy it to the data window by >>using Command-D. > >Excuse me? Why copy it to the same window? Highlight the text of your expression in the source code window, then hit Command-d. The expression and its value will pop up in the Data window. Very helpful feature. What bugs me (so to speak) is that I always seem to need it displayed as a C string, rather than as a pointer. So I have to go over and click on the expression, then choose "C String" from the Data menu. Gets to be a pain after doing it a few hundred times. What would be great is if the debugger had a preferences section which would allow you to set an option to automatically have your variables displayed as both an address and a string. I don't care if I get garbage for non-strings. Short of that, the Data menu should affect the highlighted expression in the Data window even if the Data window isn't active. That way I could use Command-d to put the expression in the Data window, then go immediately to the Data menu and select the format without having to first click in the Data window. And command-key equivalents for the Data menu would also be great! - Mark