Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325598

Summary: Cannot debug source code for Agents
Product: [Modeling] AMP Reporter: Jonas Ruttimann <jonas.ruettimann>
Component: AMFAssignee: Miles Parker <milesparker>
Status: CLOSED DUPLICATE QA Contact: Miles Parker <milesparker>
Severity: enhancement    
Priority: P3 CC: urs.frei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Jonas Ruttimann CLA 2010-09-17 10:14:08 EDT
Build Identifier: 0.8.0

After modifying the source code for Agents, I'd like to debug the code step by step while executing. So I need something like the "Execute" button. But instead it will be called "Debug".

Reproducible: Always
Comment 1 Miles Parker CLA 2010-09-17 13:03:15 EDT
Please see referenced bug. This is actually a deep issue.

Currently, the only way to do this is to launch a self-hosted runtime and then debug from there. The issue with that is that you don't actually have the source code for the model at that point. I think.. :) So you can a) use an entry point from the framework (i.e. Ascape/Escape) code itself, or b) (haven't confirmed that this will work) launch a self-hosted runtime from the AMP development runtime using either a workspace with copy of model (synchronization issues there) or with new project with dependency on existing project (I'm not sure that that that will get past class loader). Sorry there isn't a better solution to this yet.

Eventually it will be nice to have much deeper model level debugging support here.

*** This bug has been marked as a duplicate of bug 289394 ***
Comment 2 Jonas Ruttimann CLA 2010-09-20 02:00:35 EDT
(In reply to comment #1)

Yes, I can confirm the workaround with a self-hosted runtime and a copy of the model in the host workspace. It's kind of nasty but it still works. :)