For .Net8 debugging in isolated mode, you would to need to:
Follow the instruction posted by @Amor.
Copy local.setting.json file to your console app.
Copy Program.cs file into your console app.
Change your HostBuilder declaration as follow:
var host = Host.CreateDefaultBuilder() .ConfigureAppConfiguration(app => { app.AddJsonFile("local.settings.json", optional: true, reloadOnChange: true) .AddEnvironmentVariables(); }) .ConfigureServices((context, services) => {//Your code here
services.AddScoped<FunctionName>();
}) .Build();
To get access to any value in the json file you would need to append Values: to the variable name as follow:
var clientID = context.Configuration.GetValue("Values:clientId");