Blundering through Silverlight – debugging
>I've been reading through Pete Brown's Silverlight 4 in Action. Having only got to the first few chapters, I can't say much about it yet, but it does have a very good introduction to the technology.
Tripping and stumbling my way through the process of learning to write Silverlight applications, I have already come across a couple of sticking points. Here's number one:
Tripping and stumbling my way through the process of learning to write Silverlight applications, I have already come across a couple of sticking points. Here's number one:
"I can't attach the debugger to Silverlight"
I like running programs in a debugger. It's not a crutch - it's just more efficient to develop that way. So there. When I first ran my Silverlight application, the process that Visual Studio embarked upon seemed to be something like this:- The web server starts
- The debugger attaches
- Firefox starts
- The debugger decides that it's had enough, and detaches... goodbye!
The problem is right there in step 3: Firefox. For reasons unknown, the debugger just doesn't seem to get on well with browsers that aren't Internet Explorer. Changing your default browser to IE will fix this. If you don't want to mess with your browser settings, there are alternatives (although these days, with IE 8 and 9, using the blue "e" isn't too bad).