Login  Register

Re: Debugging dates

Posted by Michael Sharpe on Jul 09, 2014; 3:37pm
URL: http://quantlib.414.s1.nabble.com/Debugging-dates-tp15582p15583.html

I haven't done this myself for Quantlib, and I don't have the time at the moment to help, but if you're using Visual Studio you need to add a section to a file called autoexp.dat. Here's a post on Stack Overflow with a bunch of links describing the process: http://stackoverflow.com/q/4883238/1181561


On Wed, Jul 9, 2014 at 1:19 AM, Francois Botha <[hidden email]> wrote:
Hi,

I was wondering how you guys debug Quantlib, specifically with reference to the dates. I'm from a .NET background, so when I put a breakpoint, and add some variables to my watches, the dates show in a human readable format.

In C++, the Quantlib dates show only as the internal serial number. In the Visual Studio Immediate window, I can do someDate.year(), someDate.month() and someDate.dayOfMonth(), but that is quite cumbersome to do every time I want to see a dates human readable value.

How do you guys do it?

Francois Botha

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev



------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev