locked
how do you use the Immediate window? RRS feed

  • Question

  • so just how do you use the immediate window to test functions and subs?

    If I try calling a function in design mode in the immediate window, it says

    "The expression cannot be evaluated while in design mode."

    try it in run modes and I get

    "The expression cannot be evaluated while in run mode."

    so when can I use it????

    Thanks

    Grant

    Wednesday, July 25, 2012 10:08 PM

Answers

  • Usually, you can only evaluate code in the Immediate window when the debugger has broken into the code e.g. debugger stops on a breakpoint and you are stepping through your code.

    Justin Anderson, LightSwitch Development Team

    Wednesday, July 25, 2012 10:53 PM
    Moderator

All replies

  • Usually, you can only evaluate code in the Immediate window when the debugger has broken into the code e.g. debugger stops on a breakpoint and you are stepping through your code.

    Justin Anderson, LightSwitch Development Team

    Wednesday, July 25, 2012 10:53 PM
    Moderator
  • Hmm...

    so you cant actually debug a function without calling it from within code thats executed at runtime? not much use is it!

    Thursday, July 26, 2012 12:02 AM
  • Its use is, as Justin pointed out, in debugging.

    Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands
     
    If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer"
     
    By doing this you'll help people find answers faster.

    Thursday, July 26, 2012 12:20 AM
    Moderator