You can remap the source code during debugging in user-managed mode when the application source path has changed or ELF location is changed. Follow the steps below:
Note: An error indicating "cannot find source"
appears if the source code path or ELF location has been changed.
- Go to debug launch configuration, expand Path Map
- Click + to add source map.
- SOURCE: It refers to the original path of the source file. You can hover over the source file name in the CALL STACK view to see this path.
- DESTINATION: the current file path of the source code
- Then click OK and start debug.