PR# 12927 Sequence of layout saves/opens makes Force Debug Mode indicator wrong

Problem Report Summary
Submitter: prestoat2000
Category: EiffelStudio
Priority: Medium
Date: 2007/05/31
Class: Bug
Severity: Serious
Number: 12927
Release: 6.0.68783
Confidential: No
Status: Closed
Responsible: jfiat_es
Environment: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3 Solaris 10 on x86
Synopsis: Sequence of layout saves/opens makes Force Debug Mode indicator wrong

Description
A particular sequence of layout saves and opens and switching to Force
Environment into Debug mode causes the button to indicate that the environment
is in debug mode when it actually is not.
To Reproduce
Delete ~/.es directory.
Compile sample graphical application.
Click twice on Force Environment to Stay in Debug Mode button.
Select View/Save Layout As and save layout under name "weasel".
Click on Force Environment to Stay in Debug Mode button to go into debug mode.
Select View/Open Layout and open layout "weasel".
Now button indicates environment is in debug mode, but it is not.
Click twice on Force Environment to Stay in Debug Mode button.
Now environment is in Debug Mode, but the layout doesn't match what I expected
   (Call Stack is not visible, Objects window not visible, Watch tab is
   undocked and in upper left corner of screen instead of docked in main
   window in zone with Objects window).  
This certainly violates my expectations about how saving and restoring 
   layouts should work.
Problem Report Interactions
From:prestoat2000    Date:2007/07/06    Status: Closed    Download   
I see now what is happening.  I think I had the wrong mental model of how this
works.  I thought that a layout consisted of two components: normal mode
layout and debug mode layout.  My assumption was that when I saved a layout,
it recorded both the layout in normal mode and the layout in debug mode into
one file.  This doesn't seem to be the way it is implemented.  I don't really
think there is a bug here, but it still doesn't correspond to the way I
think about it.  Perhaps this can't be easily implemented (and maybe it isn't
even desirable) but I would like you to consider whether saving the "layout"
should save the current state of both normal and debug mode layouts and
restore would restore them both.

In any case, I'm closing this report.

From:larryl    Date:2007/07/04    Status: Analyzed    Download   
Hi, David,

In your report:
    "Now button indicates environment is in debug mode, but it is not."
Eiffel Studio really stays in debug mode after open `weasel' layout. What restoring layout doing is restoring the tools docking layout which saved in normal mode to a debug mode Eiffel Studio. It's normal that a debug mode Eiffel Studio have the same layout as normal mode Eiffel Studio's layout.

I think what you expecting is saving/restoring layout feature can save/restore Eiffel Studio debug mode state. It's possible to do this. But if Eiffel Studio really debugging (means Eiffel Studio in debug mode), end user want to restore a layout which saved in normal state. Eiffel Studio can't restore this layout since it'll force Eiffel Studio stop debugging.

So I think currently saving/restoring layout feature is ok. What do you think? Your idea is appreciated.

Thanks
Larry