When I start debugging from VSCode, the debugger only lists the sections in the outline, but not the source files that contain them.
The source files in my project are in src
in the project root, and I've tried adding "additionalSrcFolders": "${workspaceFolder}/src"
to my launch.json
but that didn't seem to do anything. "Load Sources Automatically" is enabled in the debugger, but I still have to manually load the sources from that menu for them to show up correctly in the debugger.
Breakpoints set in the source code in VSCode also don't seem to work, I assume that must be related - hovering one of those breakpoints when debugging is running shows the following error:
![image](https://private-user-images.githubusercontent.com/893884/282876038-ab5fbbd2-7633-4aef-9e03-c25a52a92901.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTExNzE2ODMsIm5iZiI6MTcxMTE3MTM4MywicGF0aCI6Ii84OTM4ODQvMjgyODc2MDM4LWFiNWZiYmQyLTc2MzMtNGFlZi05ZTAzLWMyNWE1MmE5MjkwMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMyM1QwNTIzMDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lODgwZTBjMDQyMGQxYjBmYjQ1Y2Q2MjQ2NTk4ZWFhNWM0MzI2NzliNmQ2MDNjNWZkMmZhMjIyYmZiZmVlM2E0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.tFT6vnvWqsPWeym7t2naj8s8nTlFZo4TreAWV2Y2esc)
I'm running this on macOS 14.1 with VSCode 1.84.2 and the latest version of Emulicious as of writing.
Edit: It seems like this does work correctly trying the Pokémon Red disassembly with this same setup. Is there some specific flags you need when linking or some other paths I need to specify for it to work right?