locked
Visual Studio Remote debugger caches my WPF application RRS feed

  • Question

  • Hi there,

    I am trying to debug my WPF application on a surface to test Stylus input. I am using Visual Studio 2012 and the Visual Studio Remote debugger (http://www.microsoft.com/en-ca/download/details.aspx?id=38184).

    I managed to set the remote debugger up, and I can connect to it from my PC and launch the app.

    The problem I'm having is that since the first run, it will continue to run that as opposed to grabbing the latest version every time. So my changes aren't reflected at all.

    How can I change it so that the latest build is always run?

    In the remote tools, I didn't change anything in Tools -> Options or Tools->Permissions, and left all the check boxes checked at initial setup.

    Best Regards,

    Tomas Hofmann

    Monday, July 21, 2014 7:40 PM

Answers

  • Hi Tomas,

    Could you share me the real way about how you remote debugging your app, build locally and remote running or user "attach process"?

    (1)http://msdn.microsoft.com/en-us/library/8x6by8d2(v=vs.110).aspx

    (2)http://msdn.microsoft.com/en-us/library/3s68z0b3.aspx

    In addition, you mean that you have changed your app, you need to debug the latest app changed by you, am I right?

    Maybe I misunderstood this issue, if you use the attach process, it means that we would make sure that the running process is the latest app in your remote machine.

    But if you mean that you build it locally and run it in remote machine, I'm afraid that you need to update the app's exe file in your remote machine, so it could run it in your remote machine.

    If I have misunderstood this issue, please make free feel to let me know.

    Best Regards, 


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, July 23, 2014 9:10 AM

All replies

  • Hi Tomas,

    Could you share me the real way about how you remote debugging your app, build locally and remote running or user "attach process"?

    (1)http://msdn.microsoft.com/en-us/library/8x6by8d2(v=vs.110).aspx

    (2)http://msdn.microsoft.com/en-us/library/3s68z0b3.aspx

    In addition, you mean that you have changed your app, you need to debug the latest app changed by you, am I right?

    Maybe I misunderstood this issue, if you use the attach process, it means that we would make sure that the running process is the latest app in your remote machine.

    But if you mean that you build it locally and run it in remote machine, I'm afraid that you need to update the app's exe file in your remote machine, so it could run it in your remote machine.

    If I have misunderstood this issue, please make free feel to let me know.

    Best Regards, 


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, July 23, 2014 9:10 AM
  • Ah, so there is no way of doing this without manually copying the executable every time?

    I was using the same procedure that I use when I debug Store apps, which just automatically remote-deploys and then runs the program. I had assumed that it would copy the .exe file and then remote debug it. It did it once (as I never copied the exe manually the first time) and so I assumed it would continue to do so.

    Seems I was wrong, so I will follow the procedure outlined in the first link you sent.

    Thanks,

    Tomas

    Wednesday, July 23, 2014 4:23 PM
  • @Tomas,

    >>Seems I was wrong, so I will follow the procedure outlined in the first link you sent. Thanks,

    You are welcome! Glad to know that it could help you.

    Maybe you could use a shared folder, so it would be convenient for you to update it manually.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, July 24, 2014 2:14 AM