How to extend watches view in VS2013, C/C++

Hello,
Our C/C++ project is using complex types and we have recently migrated from VS2008 to VS2013.
We used a debugger extension (using the Expression Evaluator Add-In API) to do custom display of our types in the debugger/watches.
However, our debugger extension does not appear to work under VS2013.
All the help/data that I could find (Visualizers, attributes...) only seem to apply to managed code or C#...
How do I now do custom display in the debugger in VS2013?
Thanks, Cyrille

Hi Cyrille,
Did you get your expression evaluator to work in VS2013?
I've found my notes that I made when I last tried one...
For VS2008/2010 (I think 2005 will also work, but haven’t tried it)
Modify your autoexp.dat file. You’ll need administrator access to modify it as it’s under the %ProgramFiles% directory. For example, on a 64-bit OS installation, it’s under here for VS2010:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\Debugger
The file already has commented entries for the sample so uncomment them and modify them to the location of the add-in DLL. For example:
_SYSTEMTIME=$ADDIN(C:\MyAddin\Release\EEAddIn.dll,AddIn_SystemTime)
_FILETIME=$ADDIN(C:\MyAddin \Release\EEAddIn.dll,AddIn_FileTime)
For VS 2012/2013 (and hopefully newer versions)
VS2012 dropped the use of autoexp.dat; however, you can still use existing add-ins through the new mechanism - an XML natvis file, like this:
<?xml
version="1.0"
encoding="utf-8"?>
<AutoVisualizer
xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type
Name="_FILETIME">
<DisplayString
LegacyAddin="C:\YourPath\YourAddin.dll"
Export="AddIn_FileTime">
</DisplayString>
</Type>
<Type
Name="_SYSTEMTIME">
<DisplayString
LegacyAddin="C:\YourPath\Youraddin.dll"
Export="AddIn_SystemTime">
</DisplayString>
</Type>
</AutoVisualizer>
Save the .natvis file into either of these locations:
%VSINSTALLDIR%\Common7\Packages\Debugger\Visualizers (requires admin access)
%USERPROFILE%\My Documents\Visual Studio 2013\Visualizers\
There’s more information on natvis here “Create custom views of native objects in the debugger”:
http://msdn.microsoft.com/en-us/library/jj620914.aspx

Similar Messages

  • How to extend data viewing for LCHR

    Hi all
    I have one field of a table which using LCHR data type. I want to view the whole data in the field. However currently SAP truncated to partial char only for viewing with message "Field Generic structure is too wide to display (field will be truncated)".
    Do anyone knows how to extend it?
    Thanks.
    Ala

    You have a limitation of 255 characters on every alv that you use to show the results.
    So you have to export the data from the database table.
    Let's try to explain:
    You have a database table with 2 fields (e.g.)
    LENT TYPE INT2 (2 Byte Integer (Signed)), this field itis used for save the length of the LCHR field
    ERROR_MESSAGE TYPE SMO_1500 LCHR (character 1500), this field it's used for save the string value with 1500 character.
    You can't read this data with the TCODE SE16 or SE16N or SE11, because exist a limitation of 255 character on ALV tables.
    Create a report like that to export the data to a file:
      SELECT *
         FROM zsrm_wlu_004
         INTO TABLE lt_zsrm_wlu_004
        WHERE wi IN s_wi AND
              ano IN s_ano AND
              wi_aagent IN s_agent .
    CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
           filename                        = p_file_download
          filetype                        = 'ASC'
         TABLES
           data_tab                        = lt_zsrm_wlu_004

  • How to extend f:view

    I require to extend f:view to add certain client specific attributes later on.
    the basic extension of f:view is not working. here is what i did
    public class ViewTag extends UIComponentTag {
    private String locale;
    * @see javax.faces.webapp.UIComponentTag#setProperties
    * (javax.faces.component.UIComponent)
    protected void setProperties(UIComponent component) {
    /* You have to call the super class */
    super.setProperties(component);
    ((ViewComponent) component).setLocale(locale);
    * @see javax.faces.webapp.UIComponentTag#getComponentType()
    public String getComponentType() {
    return "f.view";
    * @see javax.faces.webapp.UIComponentTag#getRendererType()
    public String getRendererType() {
    return "f.view";
    * @return Returns the locale.
    public String getLocale() {
    return locale;
    * @param locale
    * The locale to set.
    public void setLocale(String locale) {
    this.locale = locale;
    =======================================================public class ViewComponent extends UINamingContainer {
    private static final Log log = LogFactory.getLog(ViewComponent.class);
    private String locale;
    public Object saveState(FacesContext context) {
    Object values[] = new Object[2];
    values[0] = super.saveState(context);
    values[1] = locale;
    return ((Object) (values));
    public void restoreState(FacesContext context, Object state) {
    Object values[] = (Object[]) state;
    super.restoreState(context, values[0]);
    locale = (String) values[1];
    * @see javax.faces.webapp.UIComponentTag#getComponentType()
    public String getFamily() {
    return "f.view";
    * @return Returns the locale.
    public String getLocale() {
    return locale;
    * @param locale The locale to set.
    public void setLocale(String locale) {
    this.locale = locale;
    public void encodeEnd(FacesContext context) throws IOException {
    return;
    public void decode(FacesContext context) {
    return;
    ======================================================
    public class ViewRenderer extends Renderer {
    private static final Log log = LogFactory.getLog(ViewRenderer.class);
    public Object getConvertedValue(FacesContext facesContext,
    UIComponent component, Object submittedValue)
    throws ConverterException {
    return super.getConvertedValue(facesContext, component, submittedValue);
    public void decode(FacesContext context, UIComponent component) {
    /* Grab the request map from the external context */
    Map requestMap = context.getExternalContext().getRequestParameterMap();
    /* Get client ID, use client ID to grab value from parameters */
    String clientId = component.getClientId(context);
    String value = (String) requestMap.get(clientId);
    ViewComponent viewComponent = (ViewComponent) component;
    public void encodeBegin(FacesContext context, UIComponent component)
    throws IOException {
    ViewComponent viewComponent = (ViewComponent) component;
    ResponseWriter writer = context.getResponseWriter();
    encodeLocale(writer, viewComponent);
    encodeMessage(context, writer, viewComponent);
    writer.flush();
    private void encodeMessage(FacesContext context, ResponseWriter writer,
    ViewComponent viewComponent) throws IOException {
    Iterator iter = context.getMessages(viewComponent.getClientId(context));
    while (iter.hasNext()) {
    FacesMessage message = (FacesMessage) iter.next();
    writer.write(message.getDetail());
    private void encodeLocale(ResponseWriter writer, ViewComponent viewComponent)
    throws IOException {
    writer.startElement("locale", viewComponent);
    writer.write("" + viewComponent.getLocale());
    writer.endElement("locale");
    public String getFamily() {
    return "f.view";
    =======================================================
    f.tld
    <tag>
              <name>view</name>
              <tag-class>com.test.jsfcomponents.view.ViewTag</tag-class>
              <body-content>JSP</body-content>
              <attribute>
                   <name>locale</name>
                   <required>false</required>
              </attribute>
         </tag>
    ====================================================
    faces-config
    component>
              <component-type>cvns.view</component-type>
              <component-class>
                   com.cvns.jsfcomponents.view.ViewComponent
              </component-class>
         </component>
         <render-kit>
              <renderer>
                   <component-family>cvns.view</component-family>
                   <renderer-type>cvns.view</renderer-type>
                   <renderer-class>
                        com.cvns.jsfcomponents.view.ViewRenderer
                   </renderer-class>
              </renderer>
    =======================================================
    this gives me error:
         at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:711)
         at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:359)
         at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:572)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:459)
    is there anything i m missing here?

    hi...
    it is f.view..
    i had it corrected it before getting the error...
    but i m not sure whether i can extend f:view...
    the subview works pretty well
    e.g.
    <%@ taglib uri="http://covansys.com/jsf/core" prefix="cx"%>
    <cx:view>
         <cx:subview id="subviewId">
              <cx:button id="buttonId" value="test" />
         </cx:subview>
    </cx:view>
    this one is working...
    <%@ taglib uri="http://covansys.com/jsf/core" prefix="cx"%>
    <f:view>
         <cx:subview id="subviewId">
              <cx:button id="buttonId" value="test" />
         </cx:subview>
    </f:view>
    is it because there is no parent for f:view... and subview is child of f:view and hence it is working...

  • How to extend sales views extension for purchase material?

    Dear MM experts,
    pl let us know how purchase material master is extended with sales views.
    we have defined material for purchase views only, now we have requirement of sales views for the same material. Please let us how this can be done.
    Thanks in advance
    best regards
    Srihari

    Hi srihari,
    It maily depends on the user departmentt which you have selected in OMS2 Transaction...
    Normaly in standard ROH will not be having Sales view selected.
    in FERT ( finished) and HALB( semifinished) material type will be having sales views.
    If your materrila wihich is having the materila type ROH you cant extend the materila to sales view... you need to change the materila type in this scenario...
    or else create one more materila with FERT ( finished) and HALB( semifinished) material type and maintain the details in the required fields in purchase and sales as well.
    REgards
    Anand

  • How to extend WM view for materail masterial via direct input?

    Hi,
    Currently I'm using LSMW + Recording to extend warehouse management view of material master, but I found that it's not so good,
    My  question is, how to use Direct Input in LSMW to extend warehouse management view of material master? As I don't know how to use direct input, kindly please advise.
    Thanks a lot!

    Hi Ashok,
    Thanks a lot for your advice.
    I tried to use MM50 but no materials can be found, as these materials are totally new when WM go alive, the warehouse management view is not active yet so MM50 can not found any data need to be extended, so is there any method to solve this problem of MM50?
    Kindly please advise again.
    Thanks.

  • HT1657 I rented a movie a few hours ago and never finished it.  I can't view it on my Apple TV nor on my Computer.  When I go to rent it again it says you have already rented this movie, but I can't find it anywhere.  How do I watch the remainder of the r

    I rented a movie a few hours ago and never finished it.  I can't view it on my Apple TV nor on my Computer.  When I go to rent it again it says you have already rented this movie, but I can't find it anywhere.  How do I watch the remainder of the rental?

    I had the same issue with my apple tv 3rd generation. I rented Sinister and selected the "rent and watch now" option. Half way through the movie I accidentally pressed the menu button. When I looked for the rented movie on my apple tv I could not find it. Not even above the movie pannel where "purchased" and "top movies" comes up on the main menu. the apple tv suggests to go to settings>downloads but I don't have that option. I did go to settings> itunes store> check rentals but that didnt work either. It took too long to even check. Thank you because this SOLUTION worked great.
    SOLUTION: How to reset apple tv 3 3rd generation to view rented movies:on the apple tv remote: press and hold "menu" to go to the main menu. Select SETTINGS> GENERAL >RESET >RESET ALL SETTINGS. After the apple tv resets, input all your information again and your rented movies should be visible when you cruise above the "movies" section. THANK YOU!!
    Apple needs to solve this issue because honestly it took me 3 hours and a half to watch a movie that only lasted 2 BECAUSE I wast trying to solve the issue, reseting and all. blahh.

  • How to create a view object and attach with extended AM

    Hi,
    I tried to create new vo and attach this vo with the extended AM. But it is throwing error like 'PC.NAME : invalid identifier' (Actually this PC.NAME is exiting one).
    Now i want to know how to create a view object similar like seeded one but with one additional condition in the where clause.
    It is possible though extension, but i want to create two view object similar like seeded one, one with some other condition in the where clause
    and another one with some other condition.
    So for my requirement, i'll extend one VO and i'll add my condition but how to do it for second condition.
    But i want same seeded VO with two different condition.
    Any suggestions please,
    SAN

    SAN,
    There is no need to attach the newly created VO with extended AM. You need to attach the same with the standard AM.
    Regards,
    Gyan

  • How do i watch tv shows after i purchase them, i can only view 30 second videos

    how do i watch tv shows after i purchase them on itunes, i can only view 30 second video?

    Try finding the show's icon, swiping it from right to left, and choosing "Delete".

  • How can I watch videos in landscape view?

    How can I watch videos or look at pictures in landscape view?

    1. Make sure the Side Switch is set to Lock Rotation: Settings>General>Use side switch to
    http://i1224.photobucket.com/albums/ee374/Diavonex/59baf839.jpg
    2. Now check the Side Switch to make sure it's in the unlock position
    http://i1224.photobucket.com/albums/ee374/Diavonex/6a787edc3564e00c2ca6b70d4f236 e8b.jpg

  • How to extend the costing view for a material

    How to extend the costing view for a material

    Use MM01 Trxn code and Select Material and Select Costing Views and Maintain, Save it.
    Else Use MM50 and Select Material and Mainenance Status as G Costing and Execute, Maintain & Save.

  • I have purchased MOVIES from Apple iTunes and want to know how I can burn them to my DVD so I can watch/view the movies on my TV's located in my house?

    I have purchased MOVIES from Apple iTunes and want to know how I can burn them to my DVD so I can watch/view the movies on my TV's located in my house?  Pls post what you know or works for you - I see the movies on iTunes but am unable to locate them in any folder on my computer???  Thank you!
    Pete

    So what is meant here is spend more money - wrong answer.
    For that reason most people prefer to buy movies on DVD. They are easily shared, foolproof, and super easy to use. I love Apple TV and iTunes for music and TV shows, but I would never purchase a movie that was not on an optical disc.
    When I head out-of-town I can grab a couple of DVDs to watch on my new MacBook Pro during the flight. Easy and uncomplicated.
    DVDs offer another advantage. You can watch your movie without depending upon a complicated and delicate infrastructure. Also, movies are frequently censored for political correctness (Star Wars is a recent example).  Despite public pressure for a release, the Disney movie “Song of the South” remains banned.  Even cartoons like Johnny Quest are now censored.  Only people who purchased physical copies years ago have them as they were originally produced.
    When you possess a physical copy of the movie the PC patrol can't mess with it.

  • How do i watch movie rentals i rented on my imac but view on my apple TV

    How do I watch movie rentals I rented on my iMac but view on my apple TV?

    How do I watch movie rentals I rented on my iMac but view on my apple TV?
    Sounded like a good question to me but nobody seemed willing to respond. So... as I had never rented a movie, I decided to test the work flow on one of the $0.99 "specials" found on iTunes. For my test, I selected "Dark House." The 943.5 MB SD movie downloaded in about 8 minutes to the "Store/Downloads" area in the  iTunes app on my older PPC computer—most likely a volatile cache area as I could not locate a physical file at the Finder level. In any case, it seems that if you select the file in the "iTunes/Downloads" tab, it appears you can play the file locally on the computer (later confirmed this). However, as I wanted to take advantage of the my ethernet connection to my main HDTV, I went to that TV2 device connected to it and checked it's local menu. Sure enough, I found the movie available in a newly added "Rentals" menu that now displayed between the "Music" and "Movies" sub-menus within my own iTunes Library menu.
    Be advised that starting file takes a second or two of extra time each time the you quit/restart playback as it seems the movie must be "re-authorized" for the device each time. Further, the rental can only be played on one device at a time. That is, if you want to switch from the device to another, you must close the playback sub-menu for the current device before opening the file on an alternative device. In my case, I tested switching the movie back and forth between an TV2 device and the iTunes player.
    Hope that answers your question as I plan to go and watch the move now. If nothing else, this was a learning experience for me. Quality was typical for the data rate and I had no problems viewing the content on my system. I also like the fact that chapter "descriptors" were used for this content rather than the default chapter numbers I normally use.

  • How to Use Transient View Objects to Store Session-level Global Variables

    hi
    Please consider section "40.8.5 How to Use Transient View Objects to Store Session-level Global Variables"
    at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcstatemgmt.htm#ADFFD19610
    Based on this documentation I created the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.01.zip
    It behaves as show in the screencast at http://screencast.com/t/qDvSQCgpvYdd
    Its Application Module has a Transient View Object instance "MyEmployeesContextVOVI", as master for the child View Object instance "EmpInCtxJobVI".
    On rollback the Transient View Object instance keeps its row and attribute values.
    Also when passivation and activation is forced (using jbo.ampool.doampooling=false ) the Transient View Object instance seems to keep its row and attribute values.
    questions:
    - (q1) Why does the expression #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty} evaluate as true when a Transient View Object instance attribute value is changed (as shown in screencast at http://screencast.com/t/qDvSQCgpvYdd )?
    - (q2) What would be a robust approach to make a Transient View Object instance more self-contained, and manage itself to have only one single row (per instance) at all times (and as such removing the dependency on the Application Module prepareSession() as documented in "5. Create an empty row in the view object when a new user begins using the application module.")?
    many thanks
    Jan Vervecken

    Thanks for your reply Frank.
    q1) Does sample 90 help ? http://blogs.oracle.com/smuenchadf/examples/
    Yes, the sample from Steve Muench does help, "90. Avoiding Dirtying the ADF Model Transaction When Transient Attributes are Set [10.1.3] "
    at http://blogs.oracle.com/smuenchadf/examples/#90
    It does point out a difference in marking transactions dirty by different layers of the framework, "... When any attribute's value is changed through an ADFM binding, the ADFM-layer transaction is marked as dirty. ...".
    This can be illustrate with a small change in the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.02.zip
    It now shows the result of both these expressions on the page ...
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty}
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.dataProvider.transaction.dirty}... where one can be true and the other false respectively.
    See also the screencast at http://screencast.com/t/k8vgNqdKgD
    Similar to the sample from Steve Muench, another modification to the example application introduces MyCustomADFBCDataControl
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.03.zip
    public class MyCustomADFBCDataControl
      extends JUApplication
      @Override
      public void setTransactionModified()
        ApplicationModule vApplicationModule = (ApplicationModule)getDataProvider();
        Transaction vTransaction = vApplicationModule.getTransaction();
        if (vTransaction.isDirty())
          super.setTransactionModified();
    }Resulting in what seems to be more consistent/expected transaction (dirty) information,
    see also the screencast at http://screencast.com/t/756yCs1L1
    Any feedback on why the ADF Model layer is so eager to mark a transaction dirty is always welcome.
    Currently, question (q2) remains.
    regards
    Jan

  • HT1498 I rented a movie and it does not show up on my apple tv but is in my video app on my phone.   How can I watch it on my tv

    I rented a movie and it does not show up on my apple tv but is in my video app on my phone.   How can I watch it on my tv?

    A movie rented on an iPhone can only be viewed on an iPhone. If you want to view on TV you need to rent directly on ATV or via computer (and stream using home-sharing)

  • HT201343 When I mirror my macbook pro to my apple tv the only thing that shows up is one video that's on my desktop.  How can I watch something that's online on my laptop, on my apple tv?

    When I mirror my macbook pro to my apple tv the only thing that shows up is one video that's on my desktop.  How can I watch something that's online on my laptop, on my apple tv?

    Are you using mirroring or using airplay within iTunes? If you are truly mirroring then you can view anything that is displayed on your computer through Apple Tv
    Or provide more info on your issue

Maybe you are looking for

  • I lost my iphone 4s. is there anyway I can track it down?

    Somebody told me i could track it using the GPS. Can I?

  • Mavericks crashes just after install 10.9.2

    Was running Microsoft Word 2011 for Mac 17" on my (MBP 17" early 2011) Also had Powerpoint open started doing the install 10.9.2 - it completed, was running fine for about 3 minutes. Then a series of vertical lines filled the screen about 5 mm wide g

  • Structure creation

    Dear All, can u explain, how to create structure through SE11 thanks mahes

  • Raw images on iPhoto for iOS?

    Any plans for future versions of iPhoto for iOS to handle raw images?

  • The update can't be installed

    I've have two pending updates in my 10.4.11 system, iDVD update and Java for Mac OS X 10.4 Release 6, and I can't install them. I check the boxes in Software Update, it starts to download the files and then I get an error saying that the updates can'