[Multi-Index] View contents of multi-index with debugger
Hi, I started using multi-index container, everything works fine, but I have hard time when debugging my code with Visual Studio 2005. The problem is I can't see the contents of the container when point my mouse to the container variable i.e I am seeing bunch of information that needs to be expanded, but can't see the actual elements in the container, for example like I can with std::vector. Is there some way to do this ? thanks
I started using multi-index container, everything works fine, but I have hard time when debugging my code with Visual Studio 2005. The problem is I can't see the contents of the container when point my mouse to the container variable i.e I am seeing bunch of information that needs to be expanded, but can't see the actual elements in the container, for example like I can with std::vector. Is there some way to do this ? thanks
You can try using the appropriate Visualizer: https://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisua... IIRC, using visuzlizer for MI-container requires some additional code as well.
Hi,
I copied the necessary code to C:\Program Files\Microsoft Visual Studio
8\Common7\Packages\Debugger\autoexp.dat, and tried the following example
which is posted in the archives
http://lists.boost.org/boost-users/2007/06/28394.php , but it doesnot work
like the given sreenshot in the example. The information that is shown in
the watch windows is the same as before.
#define BOOST_MULTI_INDEX_LIMIT_INDEXED_BY_SIZE 5
#define BOOST_MULTI_INDEX_LIMIT_TAG_SIZE 3
#define BOOST_MULTI_INDEX_LIMIT_COMPOSITE_KEY_SIZE 5
#include "mic_visualizer.hpp"
#include <string>
#include
I started using multi-index container, everything works fine, but I have hard time when debugging my code with Visual Studio 2005. The problem is I can't see the contents of the container when point my mouse to the container variable i.e I am seeing bunch of information that needs to be expanded, but can't see the actual elements in the container, for example like I can with std::vector. Is there some way to do this ? thanks
You can try using the appropriate Visualizer:
https://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisua...
IIRC, using visuzlizer for MI-container requires some additional code as well. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
forgot to say I am using boost 1.42 On Mon, Dec 27, 2010 at 1:59 PM, elizabeta petreska < elizabeta.petreska@gmail.com> wrote:
Hi, I copied the necessary code to C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\autoexp.dat, and tried the following example which is posted in the archives http://lists.boost.org/boost-users/2007/06/28394.php , but it doesnot work like the given sreenshot in the example. The information that is shown in the watch windows is the same as before.
#define BOOST_MULTI_INDEX_LIMIT_INDEXED_BY_SIZE 5 #define BOOST_MULTI_INDEX_LIMIT_TAG_SIZE 3 #define BOOST_MULTI_INDEX_LIMIT_COMPOSITE_KEY_SIZE 5 #include "mic_visualizer.hpp"
#include <string> #include
#include #include #include #include using namespace boost::multi_index; using std::wstring; using namespace std; struct test { wstring x; wstring y; test(wchar_t const *str, wchar_t const *str2=L"def") : x(str), y(str2) {} bool operator<(test const& other) const { return x
typedef multi_index_container
> > cont; VISUALIZE_MULTI_INDEX_CONTAINER(cont);
int main() { cont test_cont; test_cont.insert(test(L"aaa")); test_cont.insert(test(L"aaa", L"other")); test_cont.insert(test(L"aac")); return 0; // see screenshoxt
}
On Mon, Dec 27, 2010 at 11:26 AM, Igor R
wrote: I started using multi-index container, everything works fine, but I have hard time when debugging my code with Visual Studio 2005. The problem is I can't see the contents of the container when point my mouse to the container variable i.e I am seeing bunch of information that needs to be expanded, but can't see the actual elements in the container, for example like I can with std::vector. Is there some way to do this ? thanks
You can try using the appropriate Visualizer:
https://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisua...
IIRC, using visuzlizer for MI-container requires some additional code as well. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I copied the necessary code to C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\autoexp.dat, and tried the following example which is posted in the archives http://lists.boost.org/boost-users/2007/06/28394.php , but it doesnot work like the given sreenshot in the example. The information that is shown in the watch windows is the same as before.
FWIW, I've just tried this visualizer with VC10, boost1.45, and it works well. I copied mic_visualizer.hpp to boost/multi_index/, and used the following example: https://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisua... Of course you have to restart VS after adding the visualizer.
I downloaded boost 1.45 and tried with visual studio 2010. still doesn't
work for me.
I did the following steps:
1) I copied mic_visualizer.hpp ( downloded from
https://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisua...)
to boost/multi_index
2) I copied the code found in
boost__MI.msvc8.vis.txthttps://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisua...to
C:\Program Files\Microsoft Visual Studio
10.0\Common7\Packages\Debugger\autoexp.dat
3) finally tried the same demo
Must be doing something wrong.
On Mon, Dec 27, 2010 at 2:54 PM, Igor R
I copied the necessary code to C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\autoexp.dat, and tried the following example which is posted in the archives http://lists.boost.org/boost-users/2007/06/28394.php , but it doesnot work like the given sreenshot in the example. The information that is shown in the watch windows is the same as before.
FWIW, I've just tried this visualizer with VC10, boost1.45, and it works well. I copied mic_visualizer.hpp to boost/multi_index/, and used the following example:
https://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisua...
Of course you have to restart VS after adding the visualizer. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
2) I copied the code found in boost__MI.msvc8.vis.txt to C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\autoexp.dat
Did you copy it to the right place? It should be in [Visualizer] section.
3) finally tried the same demo
Try the demo from the same folder: https://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisua... And after you figure out what was wrong, I believe it should work with 1.42/VC8 as well.
Thank you, that was it !
On Mon, Dec 27, 2010 at 4:55 PM, Igor R
2) I copied the code found in boost__MI.msvc8.vis.txt to C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\Debugger\autoexp.dat
Did you copy it to the right place? It should be in [Visualizer] section.
3) finally tried the same demo
Try the demo from the same folder:
https://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisua...
And after you figure out what was wrong, I believe it should work with 1.42/VC8 as well. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
elizabeta petreska
-
Igor R