Search DominoPower's 11,441 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
PROGRAMMING POWER
When the debugger won't debug hidden code that isn't hidden
By David Gewirtz

Last week, we did a little diddy on What to do if the LotusScript debugger won't single-step over code. This week, we continue our debugging the debugger series with a solution to a vexatious debugger bug.

You're in Notes and you've enabled the debugger. Now, you attempt to debug a form or view action. It looks like your code executes, but the debugger is nowhere to be found. Looking carefully at your workspace, you notice a strange little message in the status area: "Debug request ignored. Source code hidden."

Fine, so just unhide the code. Hmmm... but the code's not hidden. And yet the debugger still doesn't debug. Sigh. Maybe the best approach is to rebuild the view (or form, or page, or action). No joy. So, next you try to delete the whole thing and just write it all from scratch. Still no joy.

And no debugger.

This is enough to make you nuts. The symptoms are weird. Agents can be debugged, but not actions.

Even more bizarre, the debugger might work for a while in a project while debugging actions, but as you write more and more code, it just plain stops. There is, in fact, a threshold. If you total number of lines of code in your action is somewhere above 1450 (and this could sometimes be across actions), the debugger will cease to debug.

What to do about it
If you read my notes carefully, you noticed a clue. Agents can be debugged, but not actions. So if you can move your code into an agent, even if just for the duration of debugging, you might be able to solve the problem.

If you don't want to move your code back out of the agent once you're done debugging, you could run it as a macro using ToolsRunMacro. It's crude as crude can be, but it should get the job done. And yes, this problem goes back a long way. As best as we can tell from our old lab notes, the problem was seen as far back as 2002, most likely in the earliest releases of Notes 6.0.

David Gewirtz is the author of How To Save Jobs and Where Have All The Emails Gone? For more than 20 years, he has analyzed current, historical, and emerging issues relating to technology, competitiveness, and policy. David is the Editor-in-Chief of the ZATZ magazines, is the Cyberterrorism Advisor for the International Association for Counterterrorism and Security Professionals, and is a member of the instructional faculty at the University of California, Berkeley extension. He can be reached at david@zatz.com and you can follow him at http://www.twitter.com/DavidGewirtz.


Other articles you might like
Home > Lotus Technologies > Notes (84 articles)
   A walk down Memory Lane with Lotus Notes
   An application for scanning physical mail and distributing it virtually
   Managing Notes deployments with Teamstudio Build Manager
Home > Lotus Technologies > LotusScript (64 articles)
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
   Use the LotusScript Split function to write simpler code
Home > Tips & Techniques (102 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   A faster way to repair corrupted server files
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login