Debug

Topics: General
Jul 22, 2015 at 7:08 AM
Hi,
Say my DriverResult return following
return ContentShape("Parts_UsedEquipment_Edit", () =>
        {
            var viewModel= new viewModel
            {
                BrandId = part.Brand == null ? 0 : part.Brand.Id,
                CategoryId = part.Category == null ? 0 : part.Category.Id,
                Brands = _contentManager.Query<viewPart>().List(),
                ProductCategoryList = productList,

            };
            return shapeHelper.EditorTemplate(TemplateName: "Parts/UsedEquipment", Model: viewModel, Prefix: Prefix);
        });
Can we debug page "UsedEquipment" whenever DriverResult Editor is hit ?
Jul 22, 2015 at 7:47 AM
Yeah, add a breakpoint?
Jul 22, 2015 at 9:03 AM
I did add but its not hitting the break point at all.
Jul 22, 2015 at 11:53 AM
Did you attach the debugger? Are you sure the part should be rendered? (is it in placement.info?)