-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Debug package source path set incorrectly #13799
Comments
Thanks for your report. The first thing that we should check is if it is something specific to ffmpeg recipe, or to the Conan build system integrations. I suspect that it will still happen, but useful to rule out the ffmepg recipe from the equation. |
@memsharded thanks for the response! I did lots of builds yesterday trying to see what was going on, but I'm having trouble putting together the pieces. One thing I noticed is that I am only able to step into ffmpeg when I specify the option, When I tried to reproduce the issue with a basic package using the command you provided, I was unable to step into that package's source. It didn't matter whether I was linking statically or dynamically. This is true of other packages I've been trying too. Ironically, I've only been able to step into ffmpeg. That said, I do see .pdb files in the conan cache. I am also unclear on whether build results should differ when I use the conanfile.py in the |
Regarding the I added I could imagine it getting more complicated for auto-generated source. |
I now see it is required that the source directory not be modified when this flag is specified. |
Yes, that is true, the I will take this for brainstorming with the team, not sure what can be done, but lets try. Side note: ConanCenter recipes, by default, they do not package the *.pdb files in Windows, which is necessary to step-into. I am adding def package(self):
...
copy(self, "*.pdb", self.build_folder, os.path.join(self.package_folder, "lib"), keep_path=False) |
After adding the line you mentioned in the Thanks! |
Thanks to you for your feedback. Happy to know that with those tips it can be done in most cases. Also, for some advanced use cases, to debug your own (not ConanCenter) recipes, getting the recipe in user space and putting it in |
Fixed in #13833, from Conan 2.0.5, packages built in the local cache with |
Environment details
I am trying to use a debugger to step into a conan package (ffmpeg on windows). To do this, I create a debug version of the package and use the debug configuration in the build. When I attempt to step into the package, its seems like it has the symbols, but the source code location is incorrectly set to the temp file location, rather than the actual package source location. Maybe this is a bug?
Visual Studio lets me know that the source file it's expecting to find in the temp folder (
.conan2/p/t/ffmpe...
) cannot be found and prompts for the correct location. I can then useconan cache path --folder source ffmpeg/$VERSION
to get the location to sources the debugger can use. At this point I can debug regularlySteps to reproduce
conan_ffmpeg.props
file in .vcxproj file for appropriate configurations)Logs
No response
The text was updated successfully, but these errors were encountered: