Hi at the moment I was implementing my own debugger based on QScriptAgent. But because the next release will contain a full featured debugger I want to give it a try, because this looks very promising.
I tried to integrate the qt script debugger into my own application and encountered some problems. I want to embed the widget into my own qmainwindow and don't want to use an extra debug window. 1.) The code widget cannot be displayed until starting to evaluate a script. This makes it difficult to make an IDE like environment. A user wants to edit the code and then starts debugging. => The edit widget must be visible before debugging => it must be possible to set the script directly into the editor => otherwise I would need to implement a second editor, one for editing and and for debugging. 2.) How can I start debugging at the first line? If I execute QScriptEngine::evaluate() the scripts runs without stopping until there happens an exception. Wenn I press the pause button, then start evaluating it stops at first line. How can I do that programmatically? I tried to call action() with QScriptEngineDebugger::InterruptAction parameter and than execute evaluate(), but this doesn't work. There must be a possibility to say the debugger to stop at the first line and then call evaluate() to start the script engine. I attached a simple example code to demonstrate my usage. -- mit freundlichen Grüßen / best regards Gerhard Gappmeier ascolab GmbH - automation systems communication laboratory Tel.: +49 9131 691 123 Fax: +49 9131 691 128 Web: http://www.ascolab.com GPG-Key: http://www.ascolab.com/gpg/gg.asc
sample.tar.gz
Description: application/compressed-tar
_______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
