Presenter:Mike Taulty
It's back! Visual Studio 2005 reintroduces the idea of "edit and continue" allowing you to alter code whilst in the debugger - this session looks at what you can do with this feature.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
Hello and welcome to dishonesty and a session 1 in a series of short sessions were spent 10 minutes or so looking out concepts and features inside a visual studio net frameworks and net manage languages my name is Mike Tolkien I work in the developer and platform group in Microsoft in the UK and in this particular session is one of a series of doing and debugging applications and data look at the new feature in visual studio 2005 of edit and continue and sensuality to change occurred while the debugging now editing continue appears in the p Andean seashell out also in C will take a look at agency shall completely in this particular slot thought it would snakes and code that we can debug some out and build a new application is making a very simple application took the first fuzzy shark
Minute 1
But this seedy boat uncle that he and see one right men such ago that great icons of application and all of it is not just have a some function here core function and will use the power of intelligence to make that stuff for us and in hear all goods were just it are four items one to 10 console write line and I kept most of the anniversary was here where were they to continue that there are a number of options around its operations have we going to tools options debugging edit and continue you can see first leaders which the whole thing off in the face was he doing any editing and continuing assuming you ve got it switched on you confused as to whether it will be invoked by the deeper commands by means of
Minute 2
Of the primary press F10 and you ve modified some code do you want edit and continue trusty step in there and apply those changes while you re doing that such a process tenner I find one of those things do you want edit and continue tacitly applied at that point and if you do it you want to be asked before editing continues are done if you like it I could just happen automatically ac radio C code and then at the bottom hear what we ve got is if visual studio can t support your editing continues if you do something like either class and two were a final something like that during a debugging session little to did not reveal to support up for you and are a number of other things that you can t do an essentially the question of what want visual studio two do you wanted to ask you do did was restart it after just have it ignore any changes can t apply suffered a well have his arches ask me first in
Minute 3
And of Jews asked me he was well I quite like to be asked in terms of what I want to do a case that s fine to defence F10 is to enter this code and of course here we arrive are at call to call function and what we can do debugging here what we can do everyone to Scotland and change the implementation soloist at Info Sutton and as a step in a long line and 10 times writing out I those changes so that rather writing I went right out and lie down a system of a string instead value of eye is must have either unless removed their and we can just press F10 again and will notice at this point the visual studio because I asked it to say is it likely to apply changes or
Minute 4
Your yes I would advise that think I was it as soon as the veranda salute from the consort was you see that it has replied that countenancing can now be changed ago while we were debugging at their then in a very simple and intuitive manner now what if we now wanted to do something I can add a second class into this activism module of modified anathema to a new method in his Vigo private static void am not score the second method okay adenitis on what happens at this point is visual studio of a button of her ball swinging line on that piece of syntax and is said to me method will prevent the deep accession from continuing so one sided you can t do this on the activity is too complicated and similarly free vote and something like an a class appears that only classier
Minute 5
Then again radioactive that so no are right now you can t do this sofas and has a number of things that globally and is a list of the documentation of things that you can t do under edit and continue its is contributing on reasonable to make such huge changes our another thing to realise about editing opinion is that if we were to switch project vigorously to be released built compile up and again let s not get into this code is written quite happy debugger released built but what will find is the inner release bills were not able to go ahead and do edit and continue to consider what s happening here is that term if you attach to process was already running or if the code that you debugging is optimised then you not feel to do everything continue to considered again that they were the ones you here but I just have one thing to understand that Freddie of
Minute 6
Other than filter do it by four and on didn t build it not that d do it offer and optimise code building up and left it so it is involving to realise that about what you can and can t do without to continue our NVB this feature looks very much as out of the disco letting you project in theory that you stop debugging makefile new projects must go for Phoebe console app to play that thing and then again to suffer a similar sector of South core function in here and there will have a private salt cortical function and essentially what it can to this writer s consort and players were fine and again in this process can step into this code and S11 of that function
Minute 7
Animus at the first right line execute and we could see that appear on console is one and then all of it is strange what gets actually written answers of string format again and will have fun value is that with my drab races run on any averages F10 descend on it so before to stepping keep step in reducing or rigorous colza will hear that the changes are vilified in getting the new the new stuff now interestingly here what if it did and the function has go and add private self and function analysts predict the consul got right why hello again and then they don t replace this with a call to the Sun function and it is only did this in the EEC shall variant we got into trouble
Minute 8
But it happens if we present at this point everything he will continue for as and when our invoking some function and is stepping through a doing that stuff so we have that she added function here at debug time in July was rescued significantly his hallow coming out to a slightly different from what we did in the sea shut case but once again clearly there are limitations to what you can do a slightly different vintage are completely cynically where of what you can do all you can just let the debugger tell you when he can t do something low notice here that I was very careful to a private sale or to rent out at a public sub at this point then you notice that outlandishly a problem in that anything is saying well if you are a public function to this module is an erratic trendiness of interface of the module in which case that s too difficult to change me to make Alnwick and is a
Minute 9
Agency shall recover the highlight at Italy can t do that right now so it s a choice as to whether do not apply the code change or whether does not give a session restarted is sent to thank a JCB For every senior in this short was seen at his continued allows us to Druker will dig deep buildings are enough to go round that whole rebuild Luke and they get back to where we were much settings to control how the statue operates we seem to those and then there s so a number of limitations in the sense that is something you can t beat you go it debugging it unexpectedly buggered to be ought to make those changes and carry on things like adding whole classes into modules and so on and so forth but when he found it is as if it was to do very smart in a lusty highlight the sorts of things at your adding and tell you that you can t realistically expect out to happen so is not a religion that are cracking under just to finish a
Minute 10
Ear what can you do if you wanted more information on visual studio 2005 world as a whole amnesty and develop the Centre advert MSDN on Microsoft com PS2 thousand five at if you do go out and grab a copy of one of the express editions of June at it as an adviser on their current beater to form there about MSDN Microsoft com express and you can just download the singular and to register anything like that scrap them straight away or it is only specifically want to drop and a sessional feedback on an assassin then feel free to drop me an airline and told him Microsoft comalt I ll get back to you as an advent of the tuning in and there was you
Click here to go to original video page
Thursday, July 24, 2008
Video: Mechanics - Edit and Continue
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment