Page 1 of 1

How to show disassembly using VS Code without debugging HW? [Resolved]

Posted: Mon Dec 07, 2020 8:14 am
by Victoria Nope
Hello,

is there a way to show disassembly in VS Code without debugging HW? I understand that I can see it during debugging session but I have no HW for JTAG. I would like to just inspect the way certain functions are called.

Thank you
Have a nice day

Re: How to show disassembly using VS Code without debugging HW?

Posted: Tue Dec 22, 2020 5:42 am
by Victoria Nope
User ESP_Dazz answered me in this post:
You can get the disassembly yourself by running either objdump or gdb:

Assuming your project folder is "hello-world":

Code: Select all

cd hello-world
xtensa-esp32-elf-gdb ./build/hello-world.elf
Once in GDB, run:

Code: Select all

disassemble app_main