User forums > Using Code::Blocks

Copy Debug Watch variable content to clipboard

<< < (2/3) > >>

AndrewCot:
I have added support for copying watch data in my unofficial release, which you can read up on following thread:
https://forums.codeblocks.org/index.php/topic,24592.0.html

An example of the copied data for a wxString  example is:
"Copy data to clipboard"
0x25b21e4a4a0 L"ConfigurationName1 : %s"

"Copy row to clipboard"
[symbol =_M_p] , [value =0x25b21e4a4a0 L"ConfigurationName1 : %s"]


"Copy tree to clipboard"
[symbol =test1]
[value =]
[children = 3]
[child 0]
    [symbol =static npos]
    [value =18446744073709551615]
[child 1]
    [symbol =m_impl]
    [value =]
    [children = 4]
    [child 0]
        [symbol =static npos]
        [value =18446744073709551615]
    [child 1]
        [symbol =_M_dataplus]
        [value =]
        [children = 2]
        [child 0]
            [symbol =<std::allocator<wchar_t>>]
            [value =]
            [children = 2]
            [child 0]
                [symbol =<__gnu_cxx::new_allocator<wchar_t>>]
                [value =]
                [children = 1]
                [child 0]
                    [symbol =[0]]
                    [value =<No data fields>]
            [child 1]
                [symbol =[1]]
                [value =<No data fields>]
        [child 1]
            [symbol =_M_p]
            [value =0x25b21e4a4a0 L"ConfigurationName1 : %s"]
    [child 2]
        [symbol =_M_string_length]
        [value =23]
    [child 3]
        [symbol =[3]]
        [value =]
        [children = 2]
        [child 0]
            [symbol =_M_local_buf]
            [value =L"\027\000\000\000\250\024\x1c2e\375\177"]
        [child 1]
            [symbol =_M_allocated_capacity]
            [value =23]
[child 2]
    [symbol =m_convertedToChar]
    [value =]
    [children = 2]
    [child 0]
        [symbol =m_str]
        [value =0x0]
    [child 1]
        [symbol =m_len]
        [value =0]
--------------------


Attached is the updated context menu.

cacb:
Great work! Improving debugger capabilities is important IMHO.

ollydbg:
Great work!

oBFusCATed:
I think this view should be removed in 2021. In 2009 it was useful when I was working on the watches dlg, but in 2021 is more than useless. :(

BlueHazzard:

--- Quote from: oBFusCATed on August 08, 2021, 06:54:14 pm ---I think this view should be removed in 2021.

--- End quote ---
What view?


--- Quote from: AndrewCot on August 07, 2021, 11:43:50 am ---I have added support for copying watch data in my unofficial release, which you can read up on following thread:
--- End quote ---
Can you post a patch on SF?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version