C

MCU.Config.debugLineDirectives

Indicates whether to add #line directives to QML sources.

Description

When enabled by setting it to true, the source files generated by qmltocpp contain #line directives pointing back to the QML source code.

The directive records the original filename and line number that produced the code. This information enables the debuggers to point to the original file instead of to the intermediate C++ source file.

Without this option, these are generated as comments only.

It is set to false by default.

Usage

This property is accepted in the main application .qmlproject file. It takes a boolean value, and the default value is false.

Code example:

MCU.Config {
    debugLineDirectives: true
}

Since

This property was introduced in QmlProject API 1.3 .

See also QUL_DEBUG_LINE_DIRECTIVES.

Available under certain Qt licenses.
Find out more.