Examples showing how to use the DSM addin

Once the plugin is installed, a new toolbar will be added inside the VS IDE (the crappy disabled images are due to a limitation on visual studio extensibility API :)
toolbar1.png

Open a couple of files on the VS IDE and save a new session named "First Session" by pressing the "Save Session As" button
savesessionas1.png
firstsession.png

Close the files and open another (different) file, then save another session named "Second Session", also by pressing the "Save Session As" button
savesessionas2.png
secondsession.png

Now, let's load the "First Session" using the "Load Session" button
loadsession.png
loadfirstsession.png

The files saved under the first session are opened (and all other files are closed)
loadfirstsession2.png

Now, load the "Second Session", but now do it by selecting it on the combo box and pressing the "Reload Session" button
loadsecondsession.png

The file saved under the second session is opened (and all other files are closed)
loadsecondsession2.png

Now, let's try the to overwrite the first session we saved. Open some other file, and press "Save Session As" button, select the "First Session" and hit "Replace"
overwritefirstsession.png
overwritefirstsession2.png

"Delete Sessions" and "Save Session" features should be very intuitive now, so I'm not going to show the details of those commands
toolbar2.png

Every time a file is closed by the addin, it's added to the "Recently Closed Documents" list. From that list you can open a document by double-clicking on it
recently1.png
recently2.png

Now, let's try the automatic debugging session feature. Open any runnable project and open a couple of files. Add a breakpoint on any place of the code that is going to be executed and run the project.
debug1.png

While on the breakpoint, close any document and open some other documents. Hit F5 to continue the execution of the program until it's end (you can also hit Shift+F5 to Stop Debugging if you want to). Once the execution is stopped, the addin will prompt the user if she/he wants to reopen the documents as they were before debugging. Hit OK
debug2.png
debug3.png

The documents that were open before the debugging started are restored and all other documents are closed. If you want to re-open any of the documents that the addin closed, you can do it using the "Recently Closed Documents" feature.
debug4.png

Last edited Apr 18, 2010 at 4:20 AM by jorgerowies, version 3

Comments

No comments yet.