This article is a memorandum of the author who is a beginner in programming. Will be added at any time.
--What is a Break point? --LLDB command --View Debugger --Reference
It stops processing at the line where the breake point is set during the test. You can use this to debug line by line. To set, click the number on the left end of the editor as shown in the image below to check it.
If you execute it as it is, the process will stop at the Break point as shown in the image below, and the debug area will appear. You can debug in various ways by using commands in the debug area.
LLBD is one of the software debuggers (probably). Debug by typing a command on the console screen of the debug area.
Probably an abbreviation for print object.
po <variable>
The value of the variable specified in can be output. It's convenient.
expression <variable> = <value>
Any value can be assigned to the variable specified in. When combined with the po command, print debugging is possible without rebuilding each time. I'm happy.
View Hierarchy with Xcode as standard equipment. Translated literally, the view hierarchy. You can understand the hierarchical structure of Views on the app. Click the button circled in red in the image above to start it. Actually, I haven't used it yet, so I'll add it later.
https://developer.apple.com/videos/play/wwdc2018/412
Recommended Posts