Weenus Posted April 25, 2016 Report Share Posted April 25, 2016 Does anyone have a good functioning debugging setup for Linux? I have managed a clunky form of debugging using either Nevminer or KDevelop. I am only able to get a minute or two worth of stepping through the code. I'm fairly new to C/C++ and all their related tools so it is definitely possible I am missing some very obvious answer due to my naivety. Thanks for any information you can provide. Link to comment Share on other sites More sharing options...
Nay Posted April 28, 2016 Report Share Posted April 28, 2016 Probably time to learn GDB. There are many resources online to help you with that, including some GUIs on top of GDB (http://stackoverflow.com/questions/79023/is-there-a-c-gdb-gui-for-linux) Link to comment Share on other sites More sharing options...
Weenus Posted April 28, 2016 Author Report Share Posted April 28, 2016 Both of the tools I mentioned are using GDB under the covers. Unfortunately GDB crashes after a short amount of time when starting the process with GDB or attaching to the process after startup. I know that I am going to need to learn the tools and that is exactly what I am doing in the meantime. I would still love to hear any insight from anyone who has been able to successfully run/attach to the worldserver process with any kind of visual debugger with any amount of success. Thanks again. Link to comment Share on other sites More sharing options...
Nay Posted April 28, 2016 Report Share Posted April 28, 2016 Oh right, of course they also use GDB. Well, if you have access to a Windows machine, I don't really think there's anything better than Visual Studio debugger (the free version is more than enough). On Linux, I had some success with QtDeveloper. Link to comment Share on other sites More sharing options...
Weenus Posted April 28, 2016 Author Report Share Posted April 28, 2016 I will install QtDeveloper and cross my fingers. I've been avoiding getting the entire stack setup in Windows because I wanted some consistency between my development and 'production' environments. If debugging in VS is stable it might be worth the extra bit of work getting two separate environments setup. Thanks Nay. Link to comment Share on other sites More sharing options...
Nay Posted April 29, 2016 Report Share Posted April 29, 2016 It doesn't really get better than debugging with VS, so if you can setup a Windows machine for it, I think that you should. I found that VS Code (on Linux) can debug code with GDB, might be interesting to check as well https://code.visualstudio.com/docs/languages/cpp 1 Link to comment Share on other sites More sharing options...
Weenus Posted May 2, 2016 Author Report Share Posted May 2, 2016 For anyone getting to this thread hoping for an answer, the one Nay gave is the best option. Just use Visual Studio on Windows. I had much better results going that route instead. Thanks again Nay. Link to comment Share on other sites More sharing options...
Recommended Posts