Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple debug question

Status
Not open for further replies.

Spyrios

Technical User
Jan 24, 2004
22
US
OK, for the longest I have been debugging on the fly. But I'm so tired of doing it that way. Sometimes I can debug just by pressing F8 and stepping into the code, and sometimes I get the annoying "ding" you can't do that. So what am I doing wrong that isn't allowing me to debug?

Thanks,

Michael
 
Hi,
I prefer to use Debug.Print. This can be used to send any value to the Immediate Window (accessible via CTRL-G). This can be very useful if you have certain users getting strange or unpredictable errors. By adding simple statements to each routine and critical point (e.g., Debug.Print "Entered cmdPrint_Click"), you will end up with a record of what happened.

HTH, [pc2]
Randy Smith, MCP
rsmith@cta.org
California Teachers Association
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top