Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Debugging script code with QScriptEngineDebugger

Debugging script code with QScriptEngineDebugger

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 804 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qnoobish
    wrote on last edited by
    #1

    Hello Qt community!

    I am having a rough time and some guidance would be great!

    I am trying to use the QScriptEngineDebugger to debug some script code that is being evaluated by a QScriptEngine I have.

    The thing is that a new thread is created and in there the QScriptEngine is evaluating the script code, so when I try to trigger the QScriptEngineDebugger while the evaluation as soon as some registered script function is evaluated(and processed in another thread) I get an exception.

    Also I tried to attach and instantiate the QScriptEngineDebugger in the same thread as the QScriptEngine but I could not trigger the QScriptEngineDebugger before evaluation because I wasn't in the main GUI Thread, so this is why I have the debugger and the script engine in different threads.

    Also just to check if I was using the QScriptEngineDebugger in the right way, I tested it in the same thread as the QScriptEngine and everything was running OK.

    So I am not sure what would be the correct way to try to use the QScriptEngineDebugger with different threads involved in the ScriptEngine evaluation function.

    Really any comments or information is very appreciated.

    Thanks in advance.

    In short, software is eating the world.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved