lotus domino - How to test that agent is running In Debug? -


is there way know agent in running in debug mode (tools/debug lotusscript has been activated) ?

i found nothing in notesagent class, runonserver runindebugger.

i need avoid using progress bar function located in nnotesws.dll, pops on debugger , prohib click (step into, or watching variables). btw if occurs still can press f8 / f5, @ least not kill notes.

there example doing in openntf. can find here.

and in fact progress bar, can use tho whole class there.

the trick is: add function stop statement. measure time before stop statement , after. if time passed bigger 100ms, user had click on "continue", never manages in such small amount of time. if debugger not enabled, stop ignored - no delay...

here function used in linked openntf article:

public function isdebugmode() boolean   dim start variant   start = getthreadinfo(6) ' lsi_thread_ticks   stop   if getthreadinfo(6) - start > 100 isdebugmode = true   ' if debug application not able press continue-buton    ' within less 100 milliseconds, otherwise stop-statement not in function   ' , quicker 100 milliseconds end function 

although comment in fact wrong (100 tics not 100ms, have devide ticks per second value), code still works , want.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -