Search DominoPower's 11,320 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
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
DominoPower TV Episode 1: Inside a strategy session with Teamstudio
More about Domino log files
Say goodbye to the Uh-Ohs. Long live the Tens.
Why your log.nsf might not be purging properly
Latest Lotus Headlines
SnTT: XPages Blank Calendar Control (Part 2), adding data
Have your Lotus Notes calendar display multiple time zones
Sample Database for Microsoft Office and Lotus Symphony Integration
Symphony 3.0 beta signals another attack on Office
Enabling DAOS on a database - new recommendation
Need your opinion on some new policy settings for Mail
Sometimes IBM Lotus Domino HTTP RPC Agents aren't the answer...
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad: Apple's latest heartbreaker
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Running auto-respond rules when Outlook is closed
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Teamstudio announces the 2010 spotlight awards winners!
We had some extraordinary submissions for the 3rd annual Teamstudio Spotlight Awards, and choosing the winners was no easy task for our judges! Click here to find out who won, and to learn more about these remarkable applications and the genius developers behind them!

Tap here for more information.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login