Visual Studio source not updated when debugging

Sysprogs forums Forums VisualGDB Visual Studio source not updated when debugging

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7747
    xauxatz
    Participant

    I use VisualGDB in Visual Studio. I run Visual Studio on Windows, but compile, execute and debug on a linux machine.

    When I edit a source file in Visual Studio and then debug, it will debug on the old version of this file – unless I first open Tools/Linux Source Cache Manager and reload the source.

    I thought that VisualGDB should do this automatically. Indeed it is set up to update source files that have been changed. But apparently it doesn’t.

    #7756
    support
    Keymaster

    Hi,

     

    The Source Cache Manager is used to cache the remote source/header files (e.g. in /usr/src) that are not a part of the project but somehow participated in build, hence they are only transferred one way.

    The sources from the project directory should be normally auto-transferred on each build (see your VisualGDB Project Properties for file transfer settings).

    Sometimes when the target directories are symlinked, gdb reports the path that is different from the one used by VisualGDB and VisualGDB assumes those files are out-of-project files.

    Can you identify one particular file that does not get transferred, check its local path, Linux path reported by GDB (see the GDB Session window) and check if your settings are configured to upload the contents of that directory?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.