Attach a Debugger to Max External, using Visual Studio in Windows

Carmelo Fascella's icon

Hi everyone,

I would like to attach a debugger to my Max External patch, so be able to debug my external on a code editor (like Visual Studio Code) while it runs in a Max environment, .
I am currently using Max 8 and I am building the external on Windows 10, on a x64 machine architecture.
To build it I am using cmake and running the following commands in the build folder:
cmake .. -G "Visual Studio 16 2019" -A x64
cmake -- build . --config Debug

Please let me know if you have any idea or hints about this procedure.
Thank you very much in advance for your support!

Carmelo