Bug 487075 - [debug] Support QVTr/QVTc debugging
Summary: [debug] Support QVTr/QVTc debugging
Status: NEW
Alias: None
Product: QVTd
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-03 04:34 EST by Ed Willink CLA
Modified: 2016-05-02 17:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2016-02-03 04:34:15 EST
The QVTi debugger should be useable for QVTr/QVTc iff the stepped AST can be mapped to the QVTc/QVTr source lines. Just need the compiler chain to maintain a source AST to QVTi AST mapping.

Suggest adding a DebugTraceBack class to QVTbase, with a Transformation.ownedDebugTraceBacks to host the target to source mappings.
Comment 1 Ed Willink CLA 2016-05-02 17:38:38 EDT
DebugTraceBack was added but it adds quite a substantial bloat with references to xmi:id-less elements.

Debugging wom't make it for Neon so drop DebugTraceBack.

Better a compressed string representation, perhaps allocating ids locally in eAllContents order.

<debug model="My.oclas" ids=":23 :2 2:4 7:9">

Host model 1 => referenced 23
Host model 2 => referenced 2
Host model 3+2 => referenced 4
Host model 6+7 => referenced 9