Forum Discussion

mrouse's avatar
mrouse
Contributor
13 years ago

Debugging (F10) through a dropdown menu?

Hello all,



I hope this is the best area to put this so....



When I try to single step through my script (using F10) and I come up to a menu with a submenu I can't step through to the submenu because the submenu just flashes on the screen and the script fails at that point.



This prevents me from effectively debugging the script.



Is there something I'm doing incorrectly or is there some way to workaround this limitation?



Thank you very much for your time and any guidence you could provide.





Mike
  • sastowe's avatar
    sastowe
    Super Contributor
    I have a bunch of objects that I cannot access in debug mode like a menu that is created on a right click. When the focus changes to Test Complete for debugging, the menu disappears. I used log.message to print messages to the log to examine what I need to know.
  •  Hi Stephanie,



    I followed you up to the last sentence,  "I used log.message to print messages to the log to examine what I need to know."



    if I do a log.message will it print useful info to the log about what is happening?



    Thanks,



    Mike
  • sastowe's avatar
    sastowe
    Super Contributor
    I guess it depends what you need to know. You have to know what you want to know, and log THAT to the log file. What would you be looking AT in debug mode?