Chisel的安裝與使用

2021-08-07 12:31:56 字數 1435 閱讀 1378

如果這個命令安裝不上,則新增乙個關鍵字

ruby -e

"$(curl -fssl "

如下ruby -e

"$(curl -fssl --insecure "

brew update

brew install chisel

安裝完成之後,檢視 .lldbinit 檔案是否匯入了

command

script

import /usr/local/opt/chisel/libexec/fblldb.py

3.1> 這個命令是可以通過預覽工具檢視乙個image, 好像uiview, calayer也可以開啟.

(lldb) visualize 0x7fe205928c70

3.2>可以定位到當前所在的控制器

pvcin

the window

pviews

3.3> 給指定的view或layer新增邊框.

syntax: border [--color=color] [--width=width]

border -c red -w 2

0x7fc2c0633380

unborder 取消邊框

3.3 列印響應者鏈

print the responder chain starting from a specific responder.

syntax: presponder ; type: uiresponder *; the responder to use to start walking

3.4 tap後的資訊, 列印你所觸控的view

the console.

taplog

3.5 列印物件的繼承關係

pclass 0x7fc2c1a1d600

jsqmessagescelltextview

| uitextview

| | uiscrollview

| | | uiview

| | | | uiresponder

| | | | | nsobject

3.6 bmessage 在某個類中設定乙個端點,既是你沒有重寫這個方法.

arguments:

; type: string; expression to

set a breakpoint on

, e.g. "-[myview

setframe:]", "+[myview awesomeclassmethod]"

or"-[0xabcd1234 setframe:]"

syntax: bmessage 3.7 列印其下持有的所有例項變數

pinternals

LLDB除錯增強外掛程式Chisel安裝與使用教程

chisel是一款facebook出品的lldb偵錯程式增強外掛程式,新增了諸如pviews,show,hide等命令,詳細可以檢視chisel wiki 我們可以使用homebrew來安裝chisel,沒有安裝homebrew的同學請戳homebrew安裝 已經安裝了homebrew可以直接使用下...

chisel中 和 的區別

學了chisel有一段時間了,最近發現一些基礎的概念還是不行不清楚,絕了。碼一下供參考 在chisel裡,所有物件都應該由val型別的變數來引用,因為硬體電路的不可變性。因此,乙個變數一旦初始化時繫結了乙個物件,就不能再發生更改。但是,引用的物件很可能需要被重新賦值。例如,輸出埠在定義時使用了 與埠...

Chisel(二) Scala語法 變數與函式

變數 scala在定義乙個變數時,必須在其變數名前新增關鍵字 var 或 val 這兩者的區別是 var 修飾的變數可以新賦值,並把原值拋棄,而用了 val 修飾的變數,則被禁止重新賦值。前者在定義後只可以修改,而後者是只能讀不能寫的變數。在定義變數時,scala推薦的變數名命名方式是 駝峰命名法 ...