<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>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.</p>
<p>Jack<br>
</p>
<div class="moz-cite-prefix">On 12/26/19 11:12 AM, <a class="moz-txt-link-abbreviated" href="mailto:jvapr27@gmail.com">jvapr27@gmail.com</a>
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:25926f57114b686300d2c5ff9371f87b87b1b1c8.camel@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>Hi Thomas, </div>
<div><br>
</div>
<div>Thanks for the response. </div>
<div><br>
</div>
<div>Where can I check this? </div>
<div style="margin-left: 3ch;">
<div>> Did you build with optimization? Turn them off.</div>
<div><br>
</div>
</div>
<div>My last cmake command was: </div>
<div>cmake .. -DCMAKE_INSTALL_PREFIX=/usr
-DKDE_INSTALL_PLUGINDIR=/usr/lib64/qt5/plugins</div>
<div><font color="#333333"><br>
</font></div>
<div><span style="font-family:monospace"><font color="#333333">I
will try the following: </font></span></div>
<div><span style="font-family:monospace"><font color="#333333">cmake</font>
.. -DCMAKE_INSTALL_PREFIX=/usr
-DKDE_INSTALL_PLUGINDIR=/usr/lib64/qt5/plugins <br>
</span><span style="font-family:monospace">-DCMAKE_BUILD_TYPE=</span><span
style="font-family:monospace">Debugfull<br>
</span><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace">In case this is the
problem, do you know what this is for then? </span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace"> The default value is:
'RelWithDebInfo'<br>
<br>
</span></div>
<div><span style="font-family:monospace">I read that as
Release-with-Debug-and-Info. Is this still optimizing for
release? </span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace">thanks, </span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace">JV <br>
</span><span style="font-family:monospace">
<br>
</span></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>On Thu, 2019-12-26 at 11:59 +0100, Thomas Baumgart wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px
#729fcf solid;padding-left:1ex">
<div>Jesus,</div>
<div><br>
</div>
<div>On Donnerstag, 26. Dezember 2019 08:54:38 CET <a
href="mailto:jvapr27@gmail.com" moz-do-not-send="true">jvapr27@gmail.com</a>
wrote:</div>
<div><br>
</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div>Everyone... in case you have run into this before. </div>
<div><br>
</div>
<div>I cannot seem to get Kdevelop to work correctly. </div>
<div><br>
</div>
<div>Problems: </div>
<div>- I set breakpoints but the breakpoint is set a few lines
off. </div>
<div>- When running in Debug mode, I am watching a variable
named</div>
<div>invertedValue which I hard coded to = true; and still the
variable does</div>
<div>not set to true, as if it is not debugging the code I see
in the IDE. </div>
</blockquote>
<div><br>
</div>
<div>Did you build with optimization? Turn them off.
Optimization causes all kinds of weird looking side effects
when debugging.</div>
<div><br>
</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div>- I set qDebug() and qInfo() methods but they did not
show anything in</div>
<div>the output view. Where should this show up? Anything I
can configure in</div>
<div>the Kdevelop to get it to work? </div>
</blockquote>
<div><br>
</div>
<div>Shows up in the Debug view. See attached screenshot: shows
an active breakpoint in the source code and the output in the
Debug view.</div>
<div><br>
</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div>Any help would be greatly appreciated. </div>
</blockquote>
<div><br>
</div>
<div>Also attached how I configured the launches in KDevelop</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div>@Thomas, I am focusing on the Cashflow report. </div>
<div><br>
</div>
<div>thanks, </div>
<div><br>
</div>
<div>JV </div>
<div><br>
</div>
<div>On Sun, 2019-12-22 at 08:51 +0100, Thomas Baumgart wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div>Jesus,</div>
<div><br>
</div>
<div>On Samstag, 21. Dezember 2019 18:28:05 CET Jesus Varela
wrote:</div>
<div><br>
</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div>Dev team,</div>
<div><br>
</div>
<div>I am trying to become more familiar with the code and
am looking</div>
<div>for the</div>
<div>code that would control whether transfers are graphed
and displayed</div>
<div>as</div>
<div>negative numbers in the reports. I want to display
absolute values</div>
<div>on</div>
<div>charts and tables.</div>
</blockquote>
<div><br>
</div>
<div>Not sure which report you want to modify, but there is
e.g. a method</div>
<div>called</div>
<div>PivotTable::coloredAmount(). It is responsible to
render the color</div>
<div>for HTML</div>
<div>reports. The callee of this method provides the value.</div>
<div><br>
</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div>I figured I would use this personal desire to get
acquainted with</div>
<div>the code.</div>
<div>Any hints would be appreciated. I found the
kreportchartview.cpp</div>
<div>and in</div>
<div>there is a variable to figure out if expenses should
be negative or</div>
<div>not,</div>
<div>but I do not see anything for transfers. If it is
there, I will</div>
<div>keep</div>
<div>looking. If I am on the wrong file, please let me
know if you know</div>
<div>where I</div>
<div>should be looking.</div>
</blockquote>
<div><br>
</div>
<div>KReportChartView::drawPivotChart receives all values in
the parameter</div>
<div>'grid'.</div>
<div>You may want to look into the construction of the grid
to find the</div>
<div>spot where</div>
<div>the values of the transfers are inserted.</div>
<div><br>
</div>
<div>The spot you found is not negating the value of each
expense, but</div>
<div>simply</div>
<div>negates the value contained in the grid if the
underlying account for</div>
<div>the cell</div>
<div>is an expense account. So I wonder if that would be the
spot to</div>
<div>achieve what</div>
<div>you are trying. </div>
<div><br>
</div>
<blockquote type="cite" style="margin:0 0 0 .8ex;
border-left:2px #729fcf solid;padding-left:1ex">
<div>Just trying to make sure I am understanding the
structure. I</div>
<div>haven't used</div>
<div>c++ in a long time.</div>
<div><br>
</div>
<div>Thanks in advance for any assistance.</div>
</blockquote>
<div><br>
</div>
<div>Hope that helps. The reporting section is not my area
of expertise.</div>
<div><br>
</div>
<div><br>
</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</body>
</html>