Skip to content

Commit ec16ba9

Browse files
authoredMar 28, 2025··
Update debug_tips.md
Signed-off-by: Anton-4 <[email protected]>
1 parent 6748954 commit ec16ba9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎devtools/debug_tips.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ Note that the addresses shown in objdump may use a different offset compared to
3131
1. [Download here](https://hex-rays.com/ida-free/)
3232
2. Build your roc app with the legacy linker if it does not error only with the surgical linker: `roc build myApp.roc --linker=legacy`
3333
3. Open the produced executable with IDA free, don't change any of the suggested settings.
34-
4. You probably want to go to the function you saw in valgrind like `List_walkTryHelp_...` [here](https://github.com/roc-lang/examples/pull/192#issuecomment-2269571439). You can use Ctrl+F in the Function s window in IDA free.
35-
5. Right click and choose `Add Breakpoint` at the first instruction of the function you clicked on the previous step.
36-
6. Run the debugger by pressing F9
37-
7. Use step into (F7) and step over (F8) to see what's going on. Keep an eye on the `General Registers` and `Stack view` windows while you're stepping.
34+
4. If IDA ever asks for the path for roc_app, just click cancel.
35+
5. You probably want to go to the function you saw in valgrind like `List_walkTryHelp_...` [here](https://github.com/roc-lang/examples/pull/192#issuecomment-2269571439). You can use Ctrl+F in the Function s window in IDA free.
36+
6. Right click and choose `Add Breakpoint` at the first instruction of the function you clicked on the previous step.
37+
7. Run the debugger by pressing F9
38+
8. Use step into (F7) and step over (F8) to see what's going on. Keep an eye on the `General Registers` and `Stack view` windows while you're stepping.
3839

3940

4041
#### gdb

0 commit comments

Comments
 (0)
Please sign in to comment.