Tech Off Post

Single Post Permalink

View Thread: Debuger break changes position at runtime
  • User profile image
    Shrage

    Can someone explain this strange behaivor i get in VS.net? i  set a breakpoint in C# (and asp.net application)  when i run it, the breakpoint moves down several rows. here is the lines, i set the break on the first line (this.CustomerType...) and it moves to the row (FillAllPatterns()) at runtime.

    this.CustomerType = (UserSpace.User.Roles)EStore.Customer.UserRole(this.Page.User.Identity.Name);

    if( Request.Params["pattern"] != null)

    { //show all pattern button clicked

    if( Request.Params["pattern"] == "showall")

    {

    dtlPattern.Visible=true;

    dtlProducts.Visible=false;

    FillAllPatterns();

    }

    }