Azure Service Bus emulator or tool to debug RRS feed

  • Question

  • Is there a magical tool or plans to release one that will allow a .Net developer to debug Azure Service Bus locally. I am aware there are some workarounds that are posted in development forums. Looking to debug that already exist in a company subscription.


    Friday, May 22, 2020 3:09 PM

All replies

  • Hi,

    Thank you for posting here.

    Since this thread is related to Azure Service Bus, so I suggest that you can ask this question on Microsoft Q&A, they are more familiar with it.

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, June 3, 2020 9:01 AM
  • As far as I know there is no local emulated version available.

    A good tool to dig into messages is the Service Bus Explorer.

    Wednesday, June 3, 2020 3:50 PM
  • If you want to check whether your function will be triggered by Azure Service Bus messages, you need to own a Azure Subscription and create a Service Bus namespace because Microsoft haven't provided Azure Service Bus emulator like Azure Storage emulator.

    If you want to debug your function, you could create a new console application and invoke the function you defined. Steps below are for your reference.

    Step 1, Create a Console Application.

    Step 2, Add Project reference to the function project.

    Step 3, Install Microsoft.Azure.WebJobs -Version 2.1.0-beta1 package from NuGet to your console application.

    Install-Package Microsoft.Azure.WebJobs -Version 2.1.0-beta1

    Step 4, Use following code to invoke your function.

    class Program


    static void Main(string[] args)


    Function1.Run("msg1", new MyTraceWriter(TraceLevel.Info));



    public class MyTraceWriter : TraceWriter


    public MyTraceWriter(TraceLevel level) : base(level)



    public override void Trace(TraceEvent traceEvent)




    Wednesday, June 3, 2020 6:38 PM