简体   繁体   中英

Breakpoint not hitting on button click in Silverlight + WCF RIA Services

I have created a silverlight app using WCF RIA Services and Entity Data Model.

In mainPage.xaml page I have dropped a button and on click of that button certain operation is performing.I have put a breakpoint on button click event, but its not hitting the breakpoint when I am clicking the button.

Kindly help regarding the same!!!

Thanks Piyush

You need to enable "Silverlight" debugging in the web project.

Open the "Properties" of the web project and goto page "Web". In the section "Debuggers" check the Checkbox "Silverlight".

Another problem could be, that your current build configuration is set to "Release". Change it to "Debug".

This behavior can be caused by XAP file being opened (in some ZIP viewer) while building your solution. Visual Studio is quiet about not being able to replace the old XAP with new one and your breakpoints will be "out of sync".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM