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

feedback at nemerle.org feedback at nemerle.org
Tue Jun 6 12:37:14 CEST 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=692> 
======================================================================
Reported By:                VladD2
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   692
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             06-06-2006 12:37 CEST
Last Modified:              06-06-2006 12:37 CEST
======================================================================
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).

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

Issue History
Date Modified  Username       Field                    Change              
======================================================================
06-06-06 12:37 VladD2         New Issue                                    
======================================================================




More information about the bugs mailing list