Troubles debugging QL XL addin: No Symbols Have Been Loaded

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Troubles debugging QL XL addin: No Symbols Have Been Loaded

aborodya
Hi,

Trying to debug the addin functionality per http://quantlib.org/quantlibxl/faq.html#faq_item_debugexcel and can't get it to work : none of my breakpoints are working  - "The breakpoint will not currently be hit. No symbols have been loaded for this document". Tried to set breakpoints both in QuantLib and QuantLibXLStatic. Tried both Dynamic and Static Debug configurations.

Any  ideas on how to get this to work would be greatly appreciated!
Reply | Threaded
Open this post in threaded view
|

Re: Troubles debugging QL XL addin: No Symbols Have Been Loaded

John O'Sullivan
The .pdb debug symbol files generated by Visual Studio contain a unique hash that must match the corresponding .dll or .exe. Which means they must come from the same build. Identical inputs (source code, compile flags, link flags) are not sufficient, the .dll, .exe or .xlls must be from the same actual build. Since Visual Studio generated the .pdbs it should know where to find them. 

An alternate approach to that outlined in the link you gave is to set excel.exe as the launch command for the debug session in the project that builds the .xll. Look in project properties, Debugging/Command. That way you can launch the whole debug session from inside VS, instead of launching excel from outside, then attaching to an already running process.

Good luck!

Cheers
John

On 13 February 2017 at 09:47, aborodya <[hidden email]> wrote:
Hi,

Trying to debug the addin functionality per
http://quantlib.org/quantlibxl/faq.html#faq_item_debugexcel and can't get it
to work : none of my breakpoints are working  - "The breakpoint will not
currently be hit. No symbols have been loaded for this document". Tried to
set breakpoints both in QuantLib and QuantLibXLStatic. Tried both Dynamic
and Static Debug configurations.

Any  ideas on how to get this to work would be greatly appreciated!



--
View this message in context: http://quantlib.10058.n7.nabble.com/Troubles-debugging-QL-XL-addin-No-Symbols-Have-Been-Loaded-tp18078.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users