Visual Studio Watch window tips

Source: Internet
Author: User

1. Various pseudo variables)
(1) @ err: GetLastError () value at the current breakpoint
(2) $ handles: Number of handles currently used
(3) $ clk: the time in clock cycles
(4) $ vframe: address of the current stack frame
(5) @ reg | $ reg: View register content
@ Eax: Return Value of the latest callback function. The 64-bit system is @ rax.
(6) variables supported by the higher version
$ Tid: ID of the current thread
$ Pid: ID of the current process
$ User: current OS user Name
$ Cmdline: process command line

 

Ii. Formatting numeric values
(1) 0x10, wm: WM_CLOSE
(2) 0x00400000, wc: WS_OVERLAPPEDWINDOW
(3) @ err, hr: 0x00000002 the system cannot find the specified file.
(4) hexadecimal conversion
123, I: signed decimal
123, d: Same as above
123, u: Unsigned decimal
123, o: Unsigned octal
123, x: lowercase hexadecimal
123, x: Capital hexadecimal

 

Iii. view memory
Ptr: Used as a string for viewing (including addresses)
Ptr, s: view as a string (not including the address)
Ptr, 8: view as BYTE [8]
Ptr, mb: view as BYTE [16]
Ptr, mw: view as WORD [8]
Ptr, md: view as DWORD [4]
Ptr, mq: view as ULONGLONG [2]

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.