31i73 / atom-dbg-gdb

An Atom package - A GDB debugger
https://atom.io/packages/dbg-gdb
MIT License
16 stars 10 forks source link

Startup Script #34

Closed davidrohr closed 6 years ago

davidrohr commented 6 years ago

I usually have a startup script for my application, which sets some environment variables, and perhaps does some cleanup in the working directory. I cannot put that script as executable, since gdb could only debug bash than. It would be nice if the configuration dialog (or the config file) could offer an option for a script to execute before starting the actual gdb session.

ceremcem commented 6 years ago

When do you need to run your cleanup_script? If it was right before starting the debugger, you can use gdbinit.

davidrohr commented 6 years ago

Indeed, thanks for the idea.