Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Mar 4, 2025
1 parent efb23fe commit 0bcd739
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions samples/NativeAOT/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ Once `lldb-server` is up and running, you will want to run up the app using the
adb shell am start -S --user "0" -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "net.dot.hellonativeaot/my.MainActivity" -D
```

The `-D` is important as it stops the app from running until the java debugger is attached.
The `-D` is important as it stops the app from running until the java debugger is attached. If you do not want to the app to pause on startup, you can omit the `-D` argument.

Now that the app is running we need to get the process id.

```dotnetcli
Expand All @@ -45,11 +46,11 @@ lldb
> target create samples/NativeAOT/bin/Debug/net10.0-android/android-arm64/native/NativeAOT.so
> target symbols add samples/NativeAOT/bin/Debug/net10.0-android/android-arm64/native/NativeAOT.so.dbg
> target select 0
> attach --pid <processid>
> process attach --pid <processid>
```

Next you need to attach the java debugger to clear the dialog which is currently blocking the
application execution.
Next you need to attach the java debugger to clear the dialog which is currently blocking the application execution. You can skip this step if you omited the `-D` when
launching the activity.

```dotnetcli
adb forward --remove tcp:8700
Expand Down

0 comments on commit 0bcd739

Please sign in to comment.