Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 1 Support › Adding Watches / Evaluating variables while in debug mode

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7183

    Vince

    I’m creating functions and stepping through them for debug purposes. Is there a way to add a watch to a particular variable declaration inside of a function? Or is there an option in QT to mouse over a variable to get its value? Or both? 😀

    #7187

    Christian
    Felgo Team

    Hi Vince,

    when you’re in the debug view in QtCreator at a breakpoint, you can add an expression to evaluate by right-clicking in the top-right view (the one with the columns “Name” “Value” and “Type” and selecting “Insert New Evaluated Expression”. You can then enter any JavaScript expression you would like to have evaluated.
    Mouse-over is not handled by QtCreator in debug mode I think.

    You can find out more about debugging QML in the QtCreator documentation here.

     

    Cheers,

    Chrisu

    #7188

    Vince

    Shiver me timbers, I had that column shrunk this entire time DOH! Thanks for you help

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.