I have a module in Quantlib that does not work right when I invoke it from C# via SWIG. Is there a way I could debug into Quantlib from my C# unit test?
How to debug into Quantlib via SWIG from my C# unit test
1k Views Asked by A-K At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in SWIG
- Wrapping C++ struct template in SWIG
- python swig string to char* conversion
- swig: How to make a QList<T> iterable, like std::vector
- Dereferencing pointer to incomplete type error for struct member access in Python swig C wrapper
- swig in c# - HandleRef could not be found in portable class library
- Is there a way for CMake to utilize dependencies generated by `swig -MM`?
- Using SWIG, dereference a C array pointer to a TCL variable
- Using SWIG typemaps to generate overloaded Python wrapper
- Python swig - create swig wrapped instance from ctypes pointer
- How to see C++ function invocations behind the SWIG interface, TensorFlow
- C++/SWIG typemap passed by reference
- Static linking into swig wrapper
- Fatal Python Error: GC object already tracked - but which object is it?
- SWIG typemap uint8_t* from C/C++ to java.nio.ByteBuffer
- Doubts on how to do a c wrapper for python using SWIG
Related Questions in QUANTLIB
- FloatingRateBond cashflow retrieval and printing
- Quantlib Floating rate bond with known first cash flow and forecasted cash flows equal
- Quantlib FloatingRateBond cashflow computation
- What's the meaning of "mt" in QuantLib-vc110-mt.lib?
- Installing RQuantlib package on Mac 10.12.1
- Fx forward valuation in QuantLib-Python
- Error building Quantlib-SWIG python
- Greeks of a Vanilla Option in pyql
- import QuantLib as ql ERROR
- Error installing Python-SWIG under linux
- building Quantlib-swig python 1.7
- How to advance the day in Quantlib
- How to use QuantLib with Vs2012
- Quantlib reconstruct the bond curve using a model with fixed parameters
- QuantLib Python Installation
Related Questions in QUANTLIB-SWIG
- Error installing Python-SWIG under linux
- How to advance the day in Quantlib
- Quantlib reconstruct the bond curve using a model with fixed parameters
- How to debug into Quantlib via SWIG from my C# unit test
- QuantLib in Python - cannot pickle 'SwigPyObject' object
- Why the biz day convention of OIS Rate helper is hard coded as Modified Following in QL?
- Extracting Discount Factors with reference from Bond Settlement Date instead of Evaluation Date in QuantLib
- Quantlib 1.14 and Quantlib1.14-SWIG: versions of Visual C++ prior to VC++10 (2010) are no longer supported
- Quantlib-SWIG 1.12.x for Python error, missing Quantlib/quantlib_wrap.cpp in windows
- QuantLib bindings for Octave?
- QuantLib-SWIG-1.19 python 'from . import _QuantLib' fails
- QuantLib error while Plotting Volatility Surface
- How do I get coupon payment dates for a simple fixed bond using quantlib, quantlib-swig and python
- java.lang.UnsatisfiedLinkError when trying to follow an MIT example on SWIG usage of C++ callbacks
- Error with cashflows of Canadian bonds that have a short first coupon using QuantLib
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
No one else has answered yet, so I'll provide what we do in similar situations when debugging Ruby + SWIG.
Create a Visual Studio project that contains the C# Source Generated by SWIG, the C++ generated by SWIG, your C# unit test and the rest of the Quantlib source.
I just looked through the Quantlib provided Visual Studio solution files and don't see the SWIG targets, which is unfortunate, but if you have the C++ source at least, and can build it in debug mode, you might get there. The hard part is that the C# Dll you are calling is going to be expecting to references a certain C++ DLL in its calls. You may have to move your C++ Quantlib debug library into the Debug folder of the C# project, so it finds the specific version you want.
Once you have your solution configured, build everything as debug or rel with debug symbols.
If you at this point have the C# bindings source and the Quantlib C++ source in the same solution, you should be able to set a break point anywhere in the C# or C++ and be able to step through the calls from one to the other.
With our SWIG Ruby situation we are able to set breakpoints in the SWIG generated CXX file or in the C++ library source which is wrapped by swig and step through the calls made by the Ruby interpreter. We are able to do this by launching ruby from within Visual Studio as the start up project.
I hope this information provides some help.