Forums

OverviewV-Play 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
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support