-
Notifications
You must be signed in to change notification settings - Fork 397
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
problem with debugging file via lldb #594
Comments
I just compared binary filed compile with cargo build a cross build and they are different cross binary is smaller. Do anyone has any advice ? |
@kytas I am having the same problem, how did you fix it? |
hello, in older version u must use "sourceMap": { |
Thank your for your answer. I already figured out to use the sourceMap and now my breakpoints are hit. For anyone stumbling on this issue in the future this is what you must do if your breakpoints are not getting hit (if you are using "sourceMap": {
"/mnt/<path-to-project>/src/": "d:\\<path-to-project>\\src\\"
} To find out the right paths just check the error message you get if your breakpoints are not getting hit. |
I wonder if we could make this process a bit better, like a env var that we can set |
@Emilgardis That may not be a bad idea. I also tried setting it up on another windows machine and there the source path wasn't |
That's probably because you're using different versions of cross, on current cross from the |
@Emilgardis Huh thats odd. I just started using cross on both machines and if i recall correctly they both installed the newest release 0.2.5. But I mean it is an easy fix if the paths get mixed up so its not a big issue i guess. |
On 0.2.5, installed as relevant issue: #1278 |
Hello,
i have a problem with remote debugging crosscompiled binary file. The breakpoints doesnt hit. If i compile directly with cargo build, everything works fine. Do u have some advice, what might be wrong ? The cross binary file missing any debug symbols ?
I am using VS CODE and CODELLDB
The text was updated successfully, but these errors were encountered: