<div dir="auto">Hi Jack,<div dir="auto"><br></div><div dir="auto">Yeah I tried to copy into kwrite to remove any extra formatting. On Windows I use notepad for the purpose. When I originally pasted in there it was all out of shape. I thought I had fixed it. Sorry about the mess. </div><div dir="auto"><br></div><div dir="auto">In any case, I believe as you do. That somehow the code I am seeing is not what is executing. I did build both ways. From within the kdevelop tool and from the command line. Neither helped. </div><div dir="auto"><br></div><div dir="auto">I kind of thought the c_flags was intended for C but I was not sure either. </div><div dir="auto"><br></div><div dir="auto">I did not execute from a console, I ran the cmake command and then the make command..then I went to the kdevelop and ran Debug. </div><div dir="auto"><br></div><div dir="auto">Do I need to 'install' it? </div><div dir="auto"><br></div><div dir="auto">Lol, I hope I didn't miss a step. Lol would explain everything. I am used to Java where we don't install, just debug from the editor. Is it the same here in c++ land. It has been a long time. </div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto"><br></div><div dir="auto">JV</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 26, 2019, 16:33 Jack <<a href="mailto:jack@ostroff.xyz">jack@ostroff.xyz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi JV,<br>
> On December 26, 2019 11:46 AM <a href="mailto:jvapr27@gmail.com" target="_blank" rel="noreferrer">jvapr27@gmail.com</a> wrote:<br>
> Thanks Jack!<br>
> <br>
> This is what I see in the ccmake:<br>
> <br>
>  CMAKE_BUILD_TYPE                 Debugfull<br>
>  CMAKE_COLOR_MAKEFILE             ON<br>
>  CMAKE_CXX_COMPILER               /usr/bin/c++<br>
>  CMAKE_CXX_COMPILER_AR            /usr/bin/gcc-ar<br>
>  CMAKE_CXX_COMPILER_RANLIB        /usr/bin/gcc-ranlib<br>
>  CMAKE_CXX_FLAGS<br>
>  CMAKE_CXX_FLAGS_DEBUG            -g                                  <br>
>  CMAKE_CXX_FLAGS_DEBUGFULL<br>
>  CMAKE_CXX_FLAGS_MINSIZEREL       -Os -DNDEBUG<br>
>  CMAKE_CXX_FLAGS_RELEASE          -O2 -DNDEBUG<br>
>  CMAKE_CXX_FLAGS_RELWITHDEBINFO   -O2 -g -DNDEBUG<br>
The -O2 shows optimization, which is not present for DEBUG.  I forget exactly what -Os does, but not sure if it's a problem or not.  I believe the -g is OK, and similar to the -ggdb I use. <br>
>  CMAKE_DLLTOOL                    CMAKE_DLLTOOL-NOTFOUND<br>
>  CMAKE_EXE_LINKER_FLAGS<br>
>  CMAKE_EXE_LINKER_FLAGS_DEBUG<br>
>  CMAKE_EXE_LINKER_FLAGS_DEBUGFU<br>
>  CMAKE_EXE_LINKER_FLAGS_MINSIZE<br>
>  CMAKE_EXE_LINKER_FLAGS_RELEASE                             <br>
>  CMAKE_EXE_LINKER_FLAGS_RELWITH<br>
(Please be careful with copy/paste like that - I had to trim lots of trailing spaces so it didn't look very badly wrapped.) I don't have any of the CMAKE_CXX_... entries, but I'm using ninja instead of make, which might account for that difference.  Since KMM uses C++ and not C, the CMAKE_C_... flags are not needed.  The notation in my cmake line is from many years' force of habit.<br>
> <br>
> I tried the new cmake line to see if that stops any optimization, but truly, I don't know where to do that. <br>
Not sure where to do what?  I'd clear out the build directory and start from scratch.  Create and cd to a build directory (either under or parallel to the base directory of the git checkout) and run the cmake command there.  You can run cmake right in the base dir of the source, but I have found that doing that makes it hard to clean up a bad build and start again, without messing up the source. <br>
<br>
> With what Jack said, I see those options in ccmake, but should I change anything? DEBUGFULL has nothing as a value. What I don't see is a CMAKE_C_FLAGS, not sure if that is missing or just not needed on my system.<br>
As I mentioned above, lack of CMAKE_C_FLAGS should not be a problem as there is no C code to compile.  Missing the -g from DEBUGFULL should not cause a problem, but I'm not sure what the default optimization level is without an explicit -O0.  You might be able to see it by looking at some compile command withing the make output.<br>
> <br>
> It does seem that now the debuger Step-Over function in kdevelop works better. So maybe it worked. I need to test it more.<br>
> <br>
> Still, I notice weird things, like in this image below. I stepped over a boolean variable assignment, which sets it to true, but when I hover over it, it says its value is false. The debug cursor is past the point where the assignment was made. Why? Is this a kdevelop issue or maybe I just do not understand how this tool works yet. I thought the hover over would display the current value in the variable.<br>
I don't use kdevelop much. but I'm wondering if the compiled code you are actually running might be out of sync with the  source code you are looking at.  Did you run the build from within kdevelop?  (I don't know if it's even possible to get out of sync like that, but something does seem odd.)<br>
> <br>
> Also, notice the qDebug() did not print on the application output. I did set up my application launcher in kdevelop, and debug launcher as Thomas showed in his screenshots. The only thing different was that I had an application target set, where he had an executeable. I updated mine to match his.<br>
Did you check the console output later?  I wonder if the output might have been buffered.<br>
> <br>
> <br>
> <br>
> If anyone has an more insights, please let me know.<br>
> <br>
> I appreciate the time and assistance.<br>
> <br>
> thanks,<br>
> <br>
> JV<br>
> <br>
> <br>
> On Thu, 2019-12-26 at 11:30 -0500, Jack wrote:<br>
> > Pending further response from Thomas, I think the debugfull is better for your situation. However, the actual control of optimization is in flags to the compiler, usually set with CFLAGS or CXXFLAGS. Optimization is -Ox where x is the level of optimization applied. For example, my cmake line starts with 'CFLAGS="-O0 -ggdb" CXXFLAGS=$CFLAGS cmake ....' The -O0 (capital letter o, digit zero) says no optimization at all. The -ggdb may not be necessary for you, but at some point, helped me by explicitly providing some additional debug information used by gdb. I am not sure whether it makes any difference if you are debugging with kdevelop.<br>
> >  <br>
> > Jack<br>
> > <br>
> >  <br>
> > On 12/26/19 11:12 AM, <a href="mailto:jvapr27@gmail.com" target="_blank" rel="noreferrer">jvapr27@gmail.com</a> wrote:<br>
> > <br>
> >  <br>
> > > Hi Thomas,<br>
> > >  <br>
> > > <br>
> > > <br>
> > >  <br>
> > > Thanks for the response.<br>
> > >  <br>
> > > <br>
> > > <br>
> > >  <br>
> > > Where can I check this?<br>
> > >  <br>
> > > > Did you build with optimization? Turn them off.<br>
> > >  <br>
> > > <br>
> > > <br>
> > >  <br>
> > > My last cmake command was:<br>
> > >  <br>
> > > cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_PLUGINDIR=/usr/lib64/qt5/plugins<br>
> > >  <br>
> > > <br>
> > > <br>
> > >  <br>
> > > I will try the following:<br>
> > >  <br>
> > > cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_PLUGINDIR=/usr/lib64/qt5/plugins <br>
> > > -DCMAKE_BUILD_TYPE=Debugfull<br>
> > > <br>
> > > <br>
> > >  <br>
> > > In case this is the problem, do you know what this is for then?<br>
> > >  <br>
> > > <br>
> > > <br>
> > >  <br>
> > > The default value is: 'RelWithDebInfo'<br>
> > >  <br>
> > > <br>
> > >  <br>
> > > I read that as Release-with-Debug-and-Info. Is this still optimizing for release?<br>
> > >  <br>
> > > <br>
> > > <br>
> > >  <br>
> > > thanks,<br>
> > >  <br>
> > > <br>
> > > <br>
> > >  <br>
> > > JV <br>
> > > <br>
> > > <br>
> > >  <br>
> > > <br>
> > > <br>
> > >  <br>
> > > <br>
> > > <br>
> > >  <br>
> > > <br>
> > > <br>
> > >  <br>
> > > On Thu, 2019-12-26 at 11:59 +0100, Thomas Baumgart wrote:<br>
> > >  <br>
> > > > Jesus,<br>
> > > >  <br>
> > > > <br>
> > > > <br>
> > > >  <br>
> > > > On Donnerstag, 26. Dezember 2019 08:54:38 CET <a href="mailto:jvapr27@gmail.com" target="_blank" rel="noreferrer">jvapr27@gmail.com</a> wrote:<br>
> > > >  <br>
> > > > <br>
> > > > <br>
> > > >  <br>
> > > > > Everyone... in case you have run into this before.<br>
> > > > >  <br>
> > > > > <br>
> > > > > <br>
> > > > >  <br>
> > > > > I cannot seem to get Kdevelop to work correctly.<br>
> > > > >  <br>
> > > > > <br>
> > > > > <br>
> > > > >  <br>
> > > > > Problems:<br>
> > > > >  <br>
> > > > > - I set breakpoints but the breakpoint is set a few lines off.<br>
> > > > >  <br>
> > > > > - When running in Debug mode, I am watching a variable named<br>
> > > > >  <br>
> > > > > invertedValue which I hard coded to = true; and still the variable does<br>
> > > > >  <br>
> > > > > not set to true, as if it is not debugging the code I see in the IDE.<br>
> > > >  <br>
> > > > <br>
> > > > <br>
> > > >  <br>
> > > > Did you build with optimization? Turn them off. Optimization causes all kinds of weird looking side effects when debugging.<br>
> > > >  <br>
> > > > <br>
> > > > <br>
> > > >  <br>
> > > > > - I set qDebug() and qInfo() methods but they did not show anything in<br>
> > > > >  <br>
> > > > > the output view. Where should this show up? Anything I can configure in<br>
> > > > >  <br>
> > > > > the Kdevelop to get it to work?<br>
> > > >  <br>
> > > > <br>
> > > > <br>
> > > >  <br>
> > > > Shows up in the Debug view. See attached screenshot: shows an active breakpoint in the source code and the output in the Debug view.<br>
> > > >  <br>
> > > > <br>
> > > > <br>
> > > >  <br>
> > > > > Any help would be greatly appreciated.<br>
> > > >  <br>
> > > > <br>
> > > > <br>
> > > >  <br>
> > > > Also attached how I configured the launches in KDevelop<br>
> > > >  <br>
> > > > > @Thomas, I am focusing on the Cashflow report.<br>
> > > > >  <br>
> > > > > <br>
> > > > > <br>
> > > > >  <br>
> > > > > thanks,<br>
> > > > >  <br>
> > > > > <br>
> > > > > <br>
> > > > >  <br>
> > > > > JV<br>
> > > > >  <br>
> > > > > <br>
> > > > > <br>
> > > > >  <br>
> > > > > On Sun, 2019-12-22 at 08:51 +0100, Thomas Baumgart wrote:<br>
> > > > >  <br>
> > > > > > Jesus,<br>
> > > > > >  <br>
> > > > > > <br>
> > > > > > <br>
> > > > > >  <br>
> > > > > > On Samstag, 21. Dezember 2019 18:28:05 CET Jesus Varela wrote:<br>
> > > > > >  <br>
> > > > > > <br>
> > > > > > <br>
> > > > > >  <br>
> > > > > > > Dev team,<br>
> > > > > > >  <br>
> > > > > > > <br>
> > > > > > > <br>
> > > > > > >  <br>
> > > > > > > I am trying to become more familiar with the code and am looking<br>
> > > > > > >  <br>
> > > > > > > for the<br>
> > > > > > >  <br>
> > > > > > > code that would control whether transfers are graphed and displayed<br>
> > > > > > >  <br>
> > > > > > > as<br>
> > > > > > >  <br>
> > > > > > > negative numbers in the reports. I want to display absolute values<br>
> > > > > > >  <br>
> > > > > > > on<br>
> > > > > > >  <br>
> > > > > > > charts and tables.<br>
> > > > > >  <br>
> > > > > > <br>
> > > > > > <br>
> > > > > >  <br>
> > > > > > Not sure which report you want to modify, but there is e.g. a method<br>
> > > > > >  <br>
> > > > > > called<br>
> > > > > >  <br>
> > > > > > PivotTable::coloredAmount(). It is responsible to render the color<br>
> > > > > >  <br>
> > > > > > for HTML<br>
> > > > > >  <br>
> > > > > > reports. The callee of this method provides the value.<br>
> > > > > >  <br>
> > > > > > <br>
> > > > > > <br>
> > > > > >  <br>
> > > > > > > I figured I would use this personal desire to get acquainted with<br>
> > > > > > >  <br>
> > > > > > > the code.<br>
> > > > > > >  <br>
> > > > > > > Any hints would be appreciated. I found the kreportchartview.cpp<br>
> > > > > > >  <br>
> > > > > > > and in<br>
> > > > > > >  <br>
> > > > > > > there is a variable to figure out if expenses should be negative or<br>
> > > > > > >  <br>
> > > > > > > not,<br>
> > > > > > >  <br>
> > > > > > > but I do not see anything for transfers. If it is there, I will<br>
> > > > > > >  <br>
> > > > > > > keep<br>
> > > > > > >  <br>
> > > > > > > looking. If I am on the wrong file, please let me know if you know<br>
> > > > > > >  <br>
> > > > > > > where I<br>
> > > > > > >  <br>
> > > > > > > should be looking.<br>
> > > > > >  <br>
> > > > > > <br>
> > > > > > <br>
> > > > > >  <br>
> > > > > > KReportChartView::drawPivotChart receives all values in the parameter<br>
> > > > > >  <br>
> > > > > > 'grid'.<br>
> > > > > >  <br>
> > > > > > You may want to look into the construction of the grid to find the<br>
> > > > > >  <br>
> > > > > > spot where<br>
> > > > > >  <br>
> > > > > > the values of the transfers are inserted.<br>
> > > > > >  <br>
> > > > > > <br>
> > > > > > <br>
> > > > > >  <br>
> > > > > > The spot you found is not negating the value of each expense, but<br>
> > > > > >  <br>
> > > > > > simply<br>
> > > > > >  <br>
> > > > > > negates the value contained in the grid if the underlying account for<br>
> > > > > > the cell<br>
> > > > > > is an expense account. So I wonder if that would be the spot to<br>
> > > > > > achieve what<br>
> > > > > > you are trying.<br>
> > > > > >  <br>
> > > > > > > Just trying to make sure I am understanding the structure. I<br>
> > > > > > > haven't used<br>
> > > > > > > c++ in a long time.<br>
> > > > > > >  <br>
> > > > > > > Thanks in advance for any assistance.<br>
> > > > > > Hope that helps. The reporting section is not my area of expertise.<br>
</blockquote></div>