Giter Site home page Giter Site logo

Comments (10)

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

pvginkel avatar pvginkel commented on May 28, 2024

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.

fduch-stranger avatar fduch-stranger commented on May 28, 2024

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.

fduch-stranger avatar fduch-stranger commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

fduch-stranger avatar fduch-stranger commented on May 28, 2024

Ok. Thank you

from rustdt.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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.

 avatar commented on May 28, 2024

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.

 avatar commented on May 28, 2024

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.

bruno-medeiros avatar bruno-medeiros commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.