Giter Site home page Giter Site logo

Comments (4)

michaelwoerister avatar michaelwoerister commented on May 28, 2024

I can confirm that the Rust pretty printers can be made to work with RustDT, by using a custom .gdbinit file and making sure the PYTHONPATH includes the pretty printers. I know too little about Eclipse to make this more ergonomic. But it should be possible to additional arguments and environment entries when starting the GDB subprocess, right?

from rustdt.

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

But it should be possible to additional arguments and environment entries when starting the GDB subprocess, right?

Yes, but it's not trivial, extending CDT to work in this way is not always easy. However, the alternative of modifying .gdbinit is something that can be done already in the released RustDT / CDT, because each launch configuration can specify a custom .gdbinit: https://github.com/RustDT/RustDT/blob/master/documentation/screenshots/UserGuide_DebuggerLaunchConfiguration.png

from rustdt.

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

Actually, I took a look at it, and this one seems relatively easy actually. I can trivially modify GDB's start arguments, or alternatively make it load a second ".gdbinit" file of my own (even a temporary file that the IDE could create on each launch - it would be invisible to the user).

Haven't tried it yet though.

from rustdt.

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

I didn't manage to get this working in Windows though, dunno if it's even possible. It doesn't auto-load the script, and even when I force loading of the script with a gdb source command, it fails with some weird error (a python error I think). I tried with latest TDM-GCC and MinGW-w64-x86_64-4.9.2-posix-seh-rt_v4-rev2

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.