text Chromiumデバッグ#memo
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Chromiumデバッグ#memo相关的知识,希望对你有一定的参考价值。
Chromium デバッグ
http://www.chromium.org/developers/how-tos/debugging
# コマンドラインオプションを指定して起動する
## --user-data-dir=c:\tmp\my_debug_profile
# 有用なツール
## "ProcessExplorer" - <http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx>
## "Winspector Spy" - <http://www.windows-spy.com/>
## Inspect32
## "FileMon" - <http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx>
# マルチプロセスというアーキテクチャへの対応
## シングルプロセスで起動する
### chrome projectのプロパティのデバッキングタブのCommand Argumentsフィールドに、--single-process をつける。不完全。
## Visual Studio上でのデバッグ
### Tools > Attach to Process
### Debug > Windows > Processesでプロセスを切り替える
### 子プロセスをすぐに見たいとき --renderer-startup-dialog(と--no-sandobox)
## 半自動で子プロセスにアタッチする
# WinDBG
Common commands
dt this->member_
Displays the data
x chrome*!*function_name
Finds a symbol.
.open -a [symbol address or complete symbol name found by using x]
Opens the source file containing the specified symbol. Pretty neat.
?? [data name]
Quick evaluation of a C++ symbol (local variable, etc). You don't need to specify this-> for member variables but it's slower if you don't.
dv [/V]
Displays local variables
dd address
Displays the contents of memory at the given address (as doubles... dc, dw, dq etc)
dt -r1 type address
Displays an object of the given type stored at the given address, using 1 level of recursion.
!stl
Displays some stl structures (visualizer)
dt -n <type>
Displays a type forcing the name to the supplied type (when there are problematic characters in the name)
~*n
Freezes all threads
~4m
Thaws thread number 4
Ctrl-Shift-I
Sets the selected source line to be the next line to be executed
F5, Ctrl-Shift-F5, F9, F10, F11
Run, restart, toggle breakpoint, step over, step into.
Common commands when working with a crash
!analyze -v
Displays a basic crash analysis report.
.ecxr
Switch the context to the exception record.
dds address
Displays symbols following address (as in a stack or vtable)
k = address address address
Rebuilds a call stack assuming that address is a valid stack frame.
uf symbol
Unassembles a function showing source line number.
lm vmchr*
Lists verbose information about all modules with a name that starts with ch
ln address
Lists all symbols that match a given address (dedups a symbol).
.load wow64exts
On a 64-bit debugger, load the 32-bit extensions so that the current architecture can be switched
.effmach x86
Switches the current architecture to 32-bit.
.effmach x86; k = @ebp @ebp @ebp
Shows the 32-bit call stack from a 64-bit dump
# Graphical Debugging
* "Graphics Debugging in Visual Studio 2013" - <http://www.chromium.org/developers/how-tos/debugging/graphics-debugging-in-visual-studio-2013>
* "Graphical debugging with NVIDIA NSight" - <http://www.chromium.org/developers/design-documents/chromium-graphics/debugging-with-nsight>
以上是关于text Chromiumデバッグ#memo的主要内容,如果未能解决你的问题,请参考以下文章