I haven't been able to figure out how to debug 32-bit Azure apps with Visual Studio 2022, but until a better solution is available a workaround to debug your app might be to create a console app or test project that includes your azure function app as a reference, and then call the relevant code from your console app.