Comments (10)
I don't think Cygwin's GDB works well in Windows, when run under the control of IDEs. The recommended way to debug in Windows (and perhaps the only way that RustDT will support) is to use the GDB of mingw-w64, or the one in TDM-GCC
The UserGuide should be updated to reflect this though!
from rustdt.
I've been using that, but i had the same problem. I had to switch back to
Luna to get debugging back. It's probably the gdb version but I had enough
trouble finding a gdb version that worked that in fine with sticking to
Luna for now. Btw this is vertu l very likely not a RustDT issue but a
gdb/Eclipse issue.
On Wed, Jul 8, 2015, 02:06 Bruno Medeiros [email protected] wrote:
I don't think Cygwin's GDB works well in Windows, when run under the
control of IDEs. The recommended way to debug in Windows (and perhaps the
only way that RustDT will support) is to use the GDB of mingw-w64
http://mingw-w64.org/, or the one in TDM-GCC
http://tdm-gcc.tdragon.net/The UserGuide should be updated to reflect this though!
—
Reply to this email directly or view it on GitHub
#44 (comment).
from rustdt.
I've just checked Eclipse 4.4 Luna with RustDT and Cygwin GDB 7.8. It works better but still has issues. In the Debug view I am able to expand threads without errors but unfortunately GDB is unable to find sources.
No source file named C:\Users\okushnir\Desktop\workspace_tst\rust1\src\main.rs.
I think this problem relates to the dot symbol at the on of file path. Probably string splitting issue.
BTW, I agree that GDB over Cygwin is not a good idea. I will check mingw.
from rustdt.
Results for gdb 7.8 "x86_64-w64-mingw32" from mingw package.
For Eclipse 4.4 Luna all works perfect. At least with hello world app.
For Eclipse 4.5 Mars same issue as for gdb from cygwin:
Status:
Plugin: org.eclipse.debug.core 3.10.0.v20150303-1130
Message: An exception occurred during launch change notification.
Exception:
java.lang.NoSuchMethodError: org.eclipse.cdt.dsf.gdb.internal.ui.actions.GdbRestartCommand.<init>(Lorg/eclipse/cdt/dsf/service/DsfSession;Lorg/eclipse/cdt/dsf/gdb/launching/GdbLaunch;)V
at HIDDEN.HIDDEN(HIDDEN:-1)
at HIDDEN.HIDDEN(HIDDEN:-1)
at org.eclipse.core.internal.runtime.AdapterManager.getAdapter(AdapterManager.java:333)
at org.eclipse.core.internal.runtime.AdapterManager.loadAdapter(AdapterManager.java:366)
at org.eclipse.cdt.dsf.gdb.launching.GdbLaunch.getAdapter(GdbLaunch.java:372)
at org.eclipse.debug.internal.ui.launchConfigurations.PerspectiveManager.launchAdded(PerspectiveManager.java:342)
at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.run(LaunchManager.java:451)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.notify(LaunchManager.java:438)
at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:1048)
at org.eclipse.debug.internal.core.LaunchManager.addLaunch(LaunchManager.java:708)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:834)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
from rustdt.
Ah, I see, there are two different issues then. The first one is the breakpoint missing source file path:
No source file named C:\Users\okushnir\Desktop\workspace_tst\rust1\src\main.rs.
That one I already knew about, and it's specific to Cygwin (it's not because the dot at end, the dot is just part of the message. It's because it's a Windows path)
The second issue, specific to Eclipse 4.5 Mars, is new to me. I reckon it's because 4.5 Mars is installing CDT 8.7, whereas Luna has CDT 8.6. RustDT debugging is very sensitive to which CDT version is installed. The RustDT version in master is already updated to require 4.5 (and CDT 8.7), I will check if that solves the problem.
from rustdt.
Ok. Thank you
from rustdt.
I've verified that with CDT 8.7 this bug occurs with latest RustDT release.
But it has been fixed with RustDT in master
from rustdt.
Hi Bruno,
I tried to follow these instructions but I'm not getting any results.
First I tried using Luna, but when installing RustDT it updates to Mars (so that doesn't work).
Then I compiled RustDT and ran it using "Run Configurations..." but I'm getting the same results.
I cloned RustDT from here: https://github.com/RustDT/RustDT.git
Debugging was working when I first installed RustDT about 2 months ago. Then trying to get the autocomplete stuff using Racer working i must have messed up something so debugging didn't work anymore.
I installed msys2 and compiled GDB but that only gives me the error message that main.rs is not available.
Cheers,
Matthias
from rustdt.
I found a workaround.
started Msys2 and called eclipse from there.
GDB works fine in that environment.
I didn't have to set any path variable.
from rustdt.
There's too many different issues and situations going on here, it's getting confusing. Best to open an new issue if you still have an problems with the latest RustDT version.
from rustdt.
Related Issues (20)
- Preferences appear to be per workspace, not global HOT 2
- Installation conflicts with Eclipse 4.6.2 and RustDT 0.8 HOT 1
- CargoManifest_Test test failure, in Fedora
- cargo check not working HOT 4
- Project future HOT 2
- Attach gdb to pid HOT 1
- [GDB] Breakpoints don't work - "warning: can't find symbol" HOT 8
- "error: no such subcommand: `check`" after every file save HOT 2
- Project Wizard: allow customizing `cargo init` command with no VCS creation, or other options. HOT 1
- GNU-ARM-ECLIPSE integration/support HOT 5
- No brackets completion of '(' and '[' HOT 1
- Support xargo cross compilation HOT 5
- Add "Download..." button to get proper Rust sources
- The `No build targets available for project.` error for all the projects in the workspace. HOT 5
- Unable to read repository at https://rustdt.github.io/releases/content.xml. HOT 4
- resolved errors not cleared in editor window HOT 4
- Master branch tests failed HOT 3
- Cannot find generated executables HOT 4
- Support for non MinGW Windows binaries debugging
- RustDT does not work with Java 9 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rustdt.