I do not understand how to debug things running in hangfire

When I start my site with debug in Visual Studio it will hit breakpoints on the main process, but then when I start a background job with BackgroundJob.Enqueue, none of the breakpoints are hit in that job. How do I debug that job running in the background?

Please be patient, as in default setup with SqlServer, the default interval of polling background jobs is set to 15 seconds. Or you can decrease it as written in the docs. Debugging experience is the same.