This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to debug KMY source code?

Tags: None
(comma "," separated)
evertondanilo
Registered Member
Posts
3
Karma
0

How to debug KMY source code?

Thu Aug 08, 2019 8:11 am
Hello guys, I have started to use KMY two months ago, I was using another software before for kinda 10 years, anyway..
My question, What IDE should I use to open the source code, put a break point in the code and then debug it?
I've been trying to use VSCode on Ubuntu at the moment, but I'm getting problems to make it happen.

I'm C#, Java, TypeScript developer, no so good with c++. Can you give me an overview about setting up this environment?
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: How to debug KMY source code?

Thu Aug 08, 2019 9:11 am
Hi evertondanilo,

I am using KDevelop in form of the latest AppImage. Import the CMake project and you should be good to go. There may be some obstacles on the way, but those are not KDevelop related. As long as you can build KMyMoney from the command line this should be easy.

In case you want to dive into the code and debug it, please keep the following things in mind:
  • It is not easy to have an installed package of KMyMoney and a working development version in parallel. Best practice: Install either one in the system path and make sure to uninstall one before you install the other. There are people who have developed script sets to do some magic to automate this process.
  • In case you don't want to install KMyMoney in the system paths you have to adjust some (KDE/Qt) environment variables. I never got around to play with this and took the easy route to install it in the system path.
  • You may have to install a bunch of development packages before KMyMoney compiles and provides the necessary feature. CMake will tell you what is missing.
  • Subscribe to the KMyMoney developer list at kmymoney-devel@kde.org. This is the place where you get quick answers.
  • In case you have a specific topic you want to chase/modify please contact the developers at the devel list with your ideas. They will give you guidance,
Hope that helps.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
evertondanilo
Registered Member
Posts
3
Karma
0

Re: How to debug KMY source code?

Fri Aug 09, 2019 10:33 am
Thanks ipwizard for your overview, after that I could advance on my environment setup.
Actually, I've created a virtual machine just for dev environment. Because after I did data migration from my other Finance app to kmymoney I got some issues, and I want to see if is a KMY or a migration issue.

One thing that I missed on README.cmake was the info on how to add KMY dep source url on ubuntu source list, I think it should be there, something like:

- First make sure you have KMY dep source url on Linux source list:
sudo add-apt-repository 'http://packages.debian.org/source/sid/kmymoney'

- check for required packages to build KMyMoney:
sudo apt-get build-dep kmymoney

Thanks,


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar