Cannot set a debug point, project breaks in assembler code.

Hi altogether,
I'm not a professional developer, I work k on projects for me and my children.

If I do not set a breakpoint the project behaves normal.
This issue appears in all projects, even in examples that I downloaded ("Metal by Tutorials", "Hacking with macOS").
It appears anywhere, whatever method I choose.
I created a new project and got the warning:

The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.16, but the range of supported deployment target versions is 10.6 to 10.15.99.

The project breaked.
After I set the target to 10.15 it breaked too:
Code Block obj-C
DebugTest`-[AppDelegate applicationDidFinishLaunching:]:
    0x1000029e0 <+0>:   pushq  %rbp
    0x1000029e1 <+1>:   movq   %rsp, %rbp
    0x1000029e4 <+4>:   subq   $0x20, %rsp
    0x1000029e8 <+8>:   movq   %rdi, -0x8(%rbp)
    0x1000029ec <+12>:  movq   %rsi, -0x10(%rbp)
    0x1000029f0 <+16>:  movq   $0x0, -0x18(%rbp)
    0x1000029f8 <+24>:  leaq   -0x18(%rbp), %rax
    0x1000029fc <+28>:  movq   %rax, %rdi
    0x1000029ff <+31>:  movq   %rdx, %rsi
    0x100002a02 <+34>:  callq  0x100008c3a               ; symbol stub for: objc_storeStrong
->  0x100002a07 <+39>:  movq   0xbcf2(%rip), %rax        ; (void *)0x000000010000eaa8: AppDelegate

Please help, I cannot code without debugging.
Uwe

 
Where exactly do you set breakpoint ?

What are your versions of:
  • MacOS

  • Xcode

Do you use some external framework ? Or some pods ?

Did you try using another version of Xcode ?
@Claude31
Hi, thankyou for your reply.
I set a breakpoint in applicationDidFinishLaunching:
The launch process stops at line 23 (Thread 1) and after two clicks the project runs, but i still could not use debugging.

I use macOS 11.2.1, Xcode 11.7
No external frameworks, the shown sample is untouched, except the change of the deployment target to 15.0
After upgrade to Big Sur I used 12.4, then 11.7


Have you checked he Debug Workflow settings?

Debug > Debug Workflow > Always Show Disassembly

Always Show Disassembly needs to be unchecked.
@Claude31
This hint was valuable !

Something that may you interesting:
Xcode 12.4 NSStepper.size (Large) is 0,0 , maybe a placeholder ?
Yesterday I found in Application Support tree documents :

Multiline
CallHistory.storedata
CallHistory.storedata-shm
CallHistory.storedata-wal
BlockQuote

I moved the docs to an external device and killed the originals, today they were at place again.

I would setup a test app, but how do I make ad hoc a failure, so that CD trashes to have a reason to trash the store ?



Cannot set a debug point, project breaks in assembler code.
 
 
Q