Registered Member
|
Hi,
I changed my development environment from Windows to Fedora and I needed an IDE to continue development of my isometric RPG. Anyway, I decided give a shot to KDev(my instructor from college suggested it). IDE seems good but I have problems with its debugger. Somehow, it doesn't recognizes files in executable's directory. In my Main.cpp, following line(writing it for convenience) initializes the game engine I am using and this line requires a special file(widget file).
The problem is, it gives abort signal to application and exists with runtime error that is
It should find the file because it's located in executable's directory. When I am running gdb from Konsol it works just fine. I don't know what is the problem. I need your help thank you in advance.
Last edited by cengizkandemir on Thu Apr 24, 2014 1:08 pm, edited 1 time in total.
|
Global Moderator
|
Hm, what happens exactly?
When you launch the application from KDevelop, does that work correctly? When you debug the application, what happens? Can you set breakpoints, and do those work? Greetings, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
I have solved the problem. The problem is KDev doesn't run gdb on correct path. I expect KDev to run gdb under my ..Project/Bin folder where my UI and various other files are located, however, it doesn't do that. It runs the gdb on a different path instead of binary path so executable can't find the files that it wants to load.
Here how I solved it: I created an executable that changes the path of gdb properly
and navigate the debugger executable to this executable. This changes the working path of gdb. |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]