With the release of AppStudio for ArcGIS version 4.0, we have added many exciting new features, enhancements and bug fixes to help you create cross-platform native apps easier and faster. Visit the What’s New post to learn about all of the updates. But this blog post is for all the “code ninjas” out there, as we will turn our focus to enhancements we made in AppStudio 4.0 to help our developers seeking more control when writing code and testing apps. The release introduces a new integrated Run button, QML code debugging, and QML Profiling in the bundled Qt Creator application. These were the most requested features by AppStudio developers, and we are excited to deliver an improved and more comprehensive coding experience.
Integrated Run Button
Seasoned AppStudio developers all know the Alt+Shift+R keyboard shortcut off the top of their heads, as it becomes second nature. Edit some code, then a quick Alt+Shift+R to immediately see your code running in a live app. The alternative to this shortcut is to navigate through the UI menu (Tools > External > AppStudio > Run), this gets old real fast. But in AppStudio for ArcGIS version 4.0 we have enabled the (Green) Run button at the lower left of the Qt Creator window so that you can quickly test and run your apps with a single click. (don’t worry keyboard enthusiast, Alt+Shift+R still works the same)
The conventional method to debug your AppStudio apps is to use console.log() messaging in your QML code, as these messages are displayed in the Qt Creator console when running the app in AppRun. AppStudio version 4.0 provides a more powerful method to debug your AppStudio app, by giving immediate access to the Qt Creator debugging tools. To open your app in debug mode, either press F5 in Qt Creator, or click the Start debugging of the startup project button at the lower left of the Qt Creator window. See Interacting with the Debugger in the Qt documentation for more information on how to use the debugging tools in Qt Creator.
For AppStudio developers, Qt Creator Debug mode lets you inspect the state of your app while debugging. You can interact with the debugger and interrupt running programs by setting breakpoints, go through a program line-by-line, examine and modify contents of local and global variables, and disassemble sections of code. Qt Creator displays the raw information provided by the native debuggers in a clear and concise manner with the goal to simplify the debugging process as much as possible. You can also use the Debug mode views to examine the data in more detail.
We hope you like these new features added to the Qt Creator bundled in AppStudio for ArcGIS.
- Please let us know your feedback and suggestions by emailing firstname.lastname@example.org.
- New to AppStudio? Check out this website to learn more about what AppStudio for ArcGIS can do to you and your organization.
- Become an AppStudio for ArcGIS developer! Watch this video on how to sign up for a free trial.
- Follow us on Twitter @AppStudioArcGIS to keep up-to-date on the latest information and let us know about your creations built using AppStudio to be featured in the AppStudio Showcase.
- The AppStudio team periodically hosts workshops and webinars; please sign up for the AppStudio newsletter if you are interested in information regarding AppStudio events.