Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MacBook-oops:hellod evilrat$ lldb dbgtest
- Current executable set to 'dbgtest' (x86_64).
- (lldb) breakpoint set --file=main.d --line=8
- Breakpoint 1: where = dbgtest`_Dmain + 16, address = 0x00000001000012e0
- (lldb) run
- Process 566 launched: '/Users/evilrat/Documents/prog/dbgtest/dbgtest/bin/Debug/dbgtest' (x86_64)
- Process 566 stopped
- * thread #1: tid = 0x25e9, 0x00000001000012e0 dbgtest`_Dmain + 16 at main.d:8, queue = 'com.apple.main-thread, stop reason = breakpoint 1.1
- frame #0: 0x00000001000012e0 dbgtest`_Dmain + 16 at main.d:8
- 5 void main(string[] args)
- 6 {
- 7 // Prints "Hello World" string in console
- -> 8 writeln("Hello World!");
- 9
- 10 // Lets the user press <Return> before program returns
- 11 stdin.readln();
- (lldb) next
- Hello World!
- Process 566 stopped
- * thread #1: tid = 0x25e9, 0x00000001000012f6 dbgtest`_Dmain + 38 at main.d:11, queue = 'com.apple.main-thread, stop reason = step over
- frame #0: 0x00000001000012f6 dbgtest`_Dmain + 38 at main.d:11
- 8 writeln("Hello World!");
- 9
- 10 // Lets the user press <Return> before program returns
- -> 11 stdin.readln();
- 12 }
- 13
- (lldb) continue
- Process 566 resuming
- Process 566 exited with status = 0 (0x00000000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement