[nem-bug] [Nemerle 0000692]: Incorrect debag information

feedback at nemerle.org feedback at nemerle.org
Sun Dec 31 16:54:15 CET 2006


The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=692> 
======================================================================
Reported By:                VladD2
Assigned To:                nazgul
======================================================================
Project:                    Nemerle
Issue ID:                   692
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             06-06-2006 12:37 CEST
Last Modified:              12-31-2006 16:54 CET
======================================================================
Summary:                    Incorrect debag information
Description: 
During debugging by means VS 2005 the debugger visit the AST nodes of a
code which really should not visit.

If you will try to debug following code (step by step):
def a = 1;

def b = if (a > 0)
          a + 1;
        else
          a - 2;
You will see following way (each step enclosed in/*< step_num*/ ...
/*step_num >*/):
def a = 1;

def b = /*< 2*/if/*2 >*/ (/*< 1*/ a > 0 /*1 >*/)
          /*< 3*/a + 1;/*3 >*/
        else
          /*< 4*/a - 2;/*4 >*/

Expected way:
def a = 1;

def b = if (/*< 1*/ a > 0 /*1 >*/)
          /*< 2*/a + 1;/*2 >*/
        else
          a - 2;


To reproduce this situation it is possible use the simple integration. Set
breakpoint on first line and execute a command step over (F10).

======================================================================

----------------------------------------------------------------------
 nazgul - 12-31-06 16:54 
----------------------------------------------------------------------
It is fixed by recent debugging improvements.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
06-06-06 12:37 VladD2         New Issue                                    
12-31-06 16:54 nazgul         Status                   new => resolved     
12-31-06 16:54 nazgul         Resolution               open => fixed       
12-31-06 16:54 nazgul         Assigned To               => nazgul          
12-31-06 16:54 nazgul         Note Added: 0001595                          
======================================================================




More information about the bugs mailing list