User forums > Help
where the old "Watches" window?
guihu:
today i upgrade codeblock use nightly build,version is SVN7678.
i use this version write one simple program,and set one breakpoint,i want see variable in watches window,but looks it changed,not like old version,new version work not fine..
look at picture,i declare wxString variable called "env",before execute row 107,it should display some value ,but watches see it [""]
but in old version,watches windows works fine..i can click "+" before variable,then i can see that variable value:
think old watches window is better.
or there something new feature but i am not know?
oBFusCATed:
--- Quote from: guihu on January 09, 2012, 05:42:36 pm ---think old watches window is better.
--- End quote ---
Haha, you're kidding, I guess. The new watches window is million times better than the old one.
There is some kind of bug or misconfiguration and lets try to see what went wrong on your side, can we?
Can I see the full debug log?
You can enable the full log in "Settings -> Debugger -> Common -> Display Debugger's log".
The copy-paste it here, using code tags, please.
guihu:
ok,here is my debug log.
--- Code: ---Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: c:\temp\afdsfsfsf\
Adding source dir: c:\temp\afdsfsfsf\
Adding file: c:\temp\afdsfsfsf\bin\Debug\afdsfsfsf.exe
Changing directory to: c:/temp/afdsfsfsf/.
[debug]PATH=.;C:\wxWidgetsWin\lib\gcc_lib;C:\mingw\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\IDM Computer Solutions\UEStudio;C:\java\jdk_win\bin;C:\Program Files\Windows Imaging\;C:\Program Files\Calibre2\
[debug]Command-line: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -args c:/temp/afdsfsfsf/bin/Debug/afdsfsfsf.exe
[debug]Working dir : c:\temp\afdsfsfsf
Starting debugger: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -args c:/temp/afdsfsfsf/bin/Debug/afdsfsfsf.exe
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from c:\temp\afdsfsfsf\bin\debug\afdsfsfsf.exe...
[debug]done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.3.1
[debug]Copyright (C) 2011 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "mingw32".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) 7.3.1
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set debugevents on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Function "__cxa_throw" not defined.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source C:\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory c:/temp/afdsfsfsf/
[debug]>>>>>>cb_gdb:
[debug]> break "c:/temp/afdsfsfsf/afdsfsfsfMain.cpp:101"
[debug]Breakpoint 2 at 0x401ea7: file c:\temp\afdsfsfsf\afdsfsfsfMain.cpp, line 101.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]gdb: windows_init_thread_list
Child process PID: 5492
[debug][New Thread 5492.0x2e8]
[debug]Breakpoint 2, afdsfsfsfDialog::OnAbout (this=0x22fc24, event=...) at c:\temp\afdsfsfsf\afdsfsfsfMain.cpp:101
[debug]c:\temp\afdsfsfsf\afdsfsfsfmain.cpp:101:3546:beg:0x401ea7
[debug]>>>>>>cb_gdb:
At c:\temp\afdsfsfsf\afdsfsfsfmain.cpp:101
[debug]> set debugevents off
[debug]>>>>>>cb_gdb:
[debug]> whatis str
[debug]type = wxString
[debug]>>>>>>cb_gdb:
[debug]> output /c str.m_pchData[0]@((wxStringData*)str.m_pchData - 1)->nDataLength
[debug]No symbol "wxStringData" in current context.
[debug]>>>>>>cb_gdb:
[debug]> whatis str1
[debug]type = wxString
[debug]>>>>>>cb_gdb:
[debug]> output /c str1.m_pchData[0]@((wxStringData*)str1.m_pchData - 1)->nDataLength
[debug]No symbol "wxStringData" in current context.
[debug]>>>>>>cb_gdb:
[debug]> whatis this
[debug]type = /* real type = afdsfsfsfDialog * */
[debug]afdsfsfsfDialog * const
[debug]>>>>>>cb_gdb:
[debug]> output this
[debug](afdsfsfsfDialog *) 0x22fc24>>>>>>cb_gdb:
[debug]> whatis *this
[debug]type = afdsfsfsfDialog
[debug]>>>>>>cb_gdb:
[debug]> output *this
[debug](afdsfsfsfDialog) {
[debug] <wxDialog> = {<No data fields>},
[debug] members of afdsfsfsfDialog:
[debug] static ID_STATICTEXT1 = 100,
[debug] static ID_BUTTON1 = 101,
[debug] static ID_STATICLINE1 = 102,
[debug] static ID_BUTTON2 = 103,
[debug] Button1 = 0x10623e0,
[debug] StaticText1 = 0x1061da0,
[debug] BoxSizer2 = 0x1062300,
[debug] Button2 = 0x1062b90,
[debug] StaticLine1 = 0x1062918,
[debug] BoxSizer1 = 0x1061b50,
[debug] static sm_eventTableEntries = {{
[debug] <wxEventTableEntryBase> = {
[debug] m_id = 0,
[debug] m_lastId = 0,
[debug] m_fn = 0x0,
[debug] m_callbackUserData = 0x0
[debug] },
[debug] members of wxEventTableEntry:
[debug] m_eventType = @0x9982d0
[debug] }},
[debug] static sm_eventTable = {
[debug] baseTable = 0x83c62c,
[debug] entries = 0x99804c
[debug] },
[debug] static sm_eventHashTable = {
[debug] m_table = @0x831250,
[debug] m_rebuildHash = false,
[debug] m_size = 63,
[debug] m_eventTypeTable = 0x10619f0,
[debug] static sm_first = 0x998034,
[debug] m_previous = 0x0,
[debug] m_next = 0x9982e8
[debug] }
[debug]}>>>>>>cb_gdb:
--- End code ---
i just add 2 row code:
--- Code: ---wxString str = "abcdefg";
wxString str1 = "xyz"+str;
--- End code ---
and add them and [this] [*this] to watch window...
oBFusCATed:
So the problem is this:
--- Code: ---[debug]No symbol "wxStringData" in current context.
--- End code ---
But why it happens, I don't know. Probably you should check the full log from the trunk nightly.
Jenna:
Which version of wxWidgets do you use for your program ?
Navigation
[0] Message Index
[#] Next page
Go to full version