BSD 3-Clause "New" or "Revised" License

项目介绍

alexzhornyak/QtScxmlMonitor 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前获得 10 个 Star、0 次 Fork。

仓库全名
alexzhornyak/QtScxmlMonitor
开源许可证
BSD 3-Clause "New" or "Revised" License
Star 数
10

README 摘要

SCXML Wiki | Forum | Qt SCXML Monitor This project is a set of header-only files that help you to monitor your SCXML state machine written in Qt. Monitor events could be watched in ScxmlEditor with pause-resume and breakpoints options. Qt SCXML Debug Via SVG It was an old dream to monitor state machine workflow without any external dependencies in Qt and finally it comes true. We prepared some native SCXML SVG…

完整内容见 GitHub 原始 README 或本页 。

常见问题

QtScxmlMonitor 用什么语言开发?

主要使用 C++ 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前有 10 个 Star。

QtScxmlMonitor 可以免费商用吗?

仓库采用 BSD 3-Clause "New" or "Revised" License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 QtScxmlMonitor 的源码?

可以直接克隆仓库:git clone https://github.com/alexzhornyak/QtScxmlMonitor.git,默认分支为 main;安装与运行步骤见仓库 README。

QtScxmlMonitor 最近还在维护吗?

仓库最近一次更新为 2023年1月24日,当前没有未关闭的 Issue;Star 数为 10,可作为社区活跃度的参考。

关于

Qt SCXML Monitor

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
11
价值分
6
活跃状态
活跃

语言占比

C++
QML
QMake

贡献者

README

SCXML Wiki Forum

Qt SCXML Monitor

This project is a set of header-only files that help you to monitor your SCXML state machine written in Qt. Monitor events could be watched in ScxmlEditor with pause-resume and breakpoints options.

Qt SCXML Debug Via SVG

It was an old dream to monitor state machine workflow without any external dependencies in Qt and finally it comes true. We prepared some native SCXML SVG monitors:

StopWatchDemo

Since ScxmlEditor 2.2.1 you can export SCXML to SVG, include only monitor headers in your app and create monitor instances any time.

NOTICE: While state machine pointer is not set, the monitor does nothing and can be left in Release.

Qt SCXML External Debugging Monitor

Native QtCreator’s scxml designer does not allow user to debug SCXML statecharts and observe statemachine work flow, so we offer to use ScxmlEditor as an instrument for debugging complex SCXML state charts

Description

We implemented Qt SCXML monitor in a single header ScxmlExternMonitor2.h as UDPScxmlExternMonitor. It has public a property QScxmlStateMachine *scxmlStateMachine. While scxmlStateMachine is not assigned it does nothing and you may leave it even in a release versions of your applications. When you need to observe statemachine work flow, just assign a valid QScxmlStateMachine pointer to the property, and monitor will start send UDP debug packages to the ScxmlEditor. And you will be able to observe when state is entered and when is exited, etc.

example_debug

1. Usage in QML

1.1. Option 1. From inherited state machine object

opt1

1.2. Option 2. From QML object
Monitor registration

opt2

Usage in QML

opt2_2

2. Usage in C++ Qt Widgets

cppOpt

3. Import active states configuration

There is an option to export and import active states configuration. It may be useful when you are unable to use a remote debugger. You can export active states configuration to file and open it later with ScxmlEditor Import states configuration menu option.

Let’s take a look at a simple example.

Suppose that your deployed application does not work properly on the remote device.

  • You can implement calling IScxmlExternMonitor method QStringList dumpAllActiveStates() into your application. And it will save active states configuration by demand. ImportStatesConfiguration_MenuDump

  • Later you can transfer dump file to your working place

  • Open the corresponding project with ScxmlEditor

  • Call menu Import states configuration ImportStatesConfiguration

  • Select dump file in dialog ImportStatesConfiguration_Dialog

  • Analyze active states ImportStatesConfiguration_Highlight

TOP SCXML Wiki Forum

评论

暂无评论