Source file path mapping

Sysprogs forums Forums VisualGDB Source file path mapping

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30914
    noethlichs.t
    Participant

    Hello,

    When I want to set a breakpoint during remote debugging, VisualGDB takes the target folder from the file synchronization settings. The binary I am debugging, however, has been build through other means. The GDB raw log looks like this:

    -break-insert -f /home/visualgdb/c/Source/hello-world/main.cpp:148
    &"No source file named /home/visualgdb/c/Source/hello-world/main.cpp:148.\n"

     

    I need to map the paths to:

    /home/default/build/Source/hello-world/main.cpp:148

     

    In the other direction, the path mapping from the VisualGDB settings works. If a breakpoint that has been set manually I get redirected to the correct source file.

    #30915
    support
    Keymaster

    Hi,

    Please refer to the following page for more information on path mapping: https://visualgdb.com/documentation/pathmapping/

    #30917
    noethlichs.t
    Participant

    I have read this page. It does not help me.

    When setting a breakpoint in a file, I need VisualGDB to use a different path than the $(SourceDir). Because when compiling, the file was not inside $(SourceDir).

    • This reply was modified 3 years, 4 months ago by noethlichs.t.
    #30936
    support
    Keymaster

    A custom source path mapping should take care of that. If it doesn’t work, please attach a screenshot of your path mapping settings, the full path of the file on Windows where you are trying to set a breakpoint, and a gdb log showing the command that VisualGDB used to set the breakpoint.

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