SlideShare a Scribd company logo
1 of 15
This section describes how to debug your
Mule application using:
 Studio Visual Debugger
 Troubleshooting
 Studio’s Visual Debugger allows you to run
your application in Debug mode, stopping
execution to check the contents of a message at
previously-specified building blocks.
 To do this, you set a breakpoint at any building
block in your flow that you wish to check or test
(see image below). When you run your
application in Debug mode, the application
stops immediately after executing the building
block with the breakpoint. Using the Mule
Debugger View, you can browse through the
contents of the message as it exists at that point
in the flow, and evaluate Mule
Expressions against the message.
 Complete the following macro-steps to use
the Visual Debugger in Studio.
1. Setting Breakpoints
2. Running in Debug mode
3. Viewing message data at a Breakpoint
4. Resume application execution.
5. Repeat step 3 with the next building block
with a breakpoint, if any.
 Right-click on building block, then
select Toggle breakpoint.
 In the Package Explorer pane, right-click on
your application, then select Debug As> Mule
Application. Studio begins running the
application in Debug mode, and displays
the Confirm Perspective Switch window.
 When you begin running your
application in Debug mode, Mule opens
the Mule Debug perspective. Until a
message arrives at the first breakpoint,
the Mule Debugger View in the console
displays a message that reads,
"Connected with mule ESB. Waiting for
a mule message to arrive!“
 The image below illustrates the Mule
Debug perspective.
 This section introduces a number of
techniques useful in troubleshooting
Mule problems and in gathering
information for technical support.
 Configuring Mule Stacktraces
 Debugging Outside Studio
 Logging
 By default Mule will filter out some internal
class references from stack traces to produce a
more readable output. This behavior can be
controlled one of three ways:
 Command-line arguments
 Setting properties in Mule Studio
 Using JMX
 In Anypoint Studio, you can use
the Studio Visual Debugger to help you
troubleshoot your app. If you’re creating
your Mule app outside Studio, you can
resort to the following options:
 When Running From Eclipse : Select the
"Debug As > Mule Server" start-up mode
from your configuration file. Any
breakpoint you will have set in your
custom code or Mule’s source code will
suspend the execution and will take you
to Eclipse’s Debug perspective.
 When Running Mule Standalone : You
need to start Mule with the -debug to
activate remote debugging, which gives (on
Linux):
$MULE_HOME/bin/mule –debug
 With this option, Mule will start normally
but the only difference being the following
message logged in the console:
Listening for transport dt_socket at
address: 5005
 The less high-tech and most popular of all
debugging techniques is the usage of log
statements in order to follow the evolution of an
application’s state. In Mule, the state you’re
interested in resides in the messages that are
flowing through your configuration and,
possibly, custom code.
 If you’re running your Mule configuration from
Eclipse, the log outputs are visible right in Eclipse
console window. If you’re running Mule from the
command line, the logs then are visible in your
OS console.
Mule debugging-sample

More Related Content

What's hot

6) debugging and testing
6) debugging and testing6) debugging and testing
6) debugging and testing
techbed
 

What's hot (15)

Mule soft basic example
Mule soft basic exampleMule soft basic example
Mule soft basic example
 
How to Fix Google Chrome Crashes
How to Fix Google Chrome CrashesHow to Fix Google Chrome Crashes
How to Fix Google Chrome Crashes
 
Coded ui - lesson 9 - test windows
Coded ui - lesson 9 - test windowsCoded ui - lesson 9 - test windows
Coded ui - lesson 9 - test windows
 
error code 0 x803f7000 in windows 10
error code 0 x803f7000 in windows 10error code 0 x803f7000 in windows 10
error code 0 x803f7000 in windows 10
 
Fix Shockwave Flash Crashes
Fix Shockwave Flash CrashesFix Shockwave Flash Crashes
Fix Shockwave Flash Crashes
 
MUnit run and wait scope
MUnit run and wait scopeMUnit run and wait scope
MUnit run and wait scope
 
Fix adobe-flash-player-crashes
Fix adobe-flash-player-crashesFix adobe-flash-player-crashes
Fix adobe-flash-player-crashes
 
Error handling and debugging in vb
Error handling and debugging in vbError handling and debugging in vb
Error handling and debugging in vb
 
6) debugging and testing
6) debugging and testing6) debugging and testing
6) debugging and testing
 
ASP.Net MVC 4 [Part - 2]
ASP.Net MVC 4 [Part - 2]ASP.Net MVC 4 [Part - 2]
ASP.Net MVC 4 [Part - 2]
 
Debugging in .Net
Debugging in .NetDebugging in .Net
Debugging in .Net
 
Microsoft Excel - Macros
Microsoft Excel - MacrosMicrosoft Excel - Macros
Microsoft Excel - Macros
 
Debugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitraceDebugging application using visual studio 2010 and intellitrace
Debugging application using visual studio 2010 and intellitrace
 
Coded ui - lesson 5 - ui map
Coded ui - lesson 5 - ui mapCoded ui - lesson 5 - ui map
Coded ui - lesson 5 - ui map
 
Applet execution
Applet execution Applet execution
Applet execution
 

Similar to Mule debugging-sample

Similar to Mule debugging-sample (20)

Mule debugging
Mule   debuggingMule   debugging
Mule debugging
 
Debugging mule
Debugging   muleDebugging   mule
Debugging mule
 
Running mule as worker role on azure
Running mule as worker role on azureRunning mule as worker role on azure
Running mule as worker role on azure
 
Munit
MunitMunit
Munit
 
Picaxe manual5
Picaxe manual5Picaxe manual5
Picaxe manual5
 
Debugging with MuleSoft Anypoint Studio
Debugging with MuleSoft Anypoint StudioDebugging with MuleSoft Anypoint Studio
Debugging with MuleSoft Anypoint Studio
 
Mule soft debugprogram
Mule soft debugprogramMule soft debugprogram
Mule soft debugprogram
 
Mule testing
Mule testingMule testing
Mule testing
 
Unit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex ScenariosUnit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex Scenarios
 
MUnit - Testing Mule
MUnit - Testing MuleMUnit - Testing Mule
MUnit - Testing Mule
 
Testing mule
Testing   muleTesting   mule
Testing mule
 
Mule testing
Mule   testingMule   testing
Mule testing
 
Dive into Angular, part 5: Experience
Dive into Angular, part 5: ExperienceDive into Angular, part 5: Experience
Dive into Angular, part 5: Experience
 
Execute Automation Testing in 3 Steps
Execute Automation Testing in 3 StepsExecute Automation Testing in 3 Steps
Execute Automation Testing in 3 Steps
 
Testing in mule
Testing in muleTesting in mule
Testing in mule
 
VBA Tips
VBA TipsVBA Tips
VBA Tips
 
Flows in mule
Flows in muleFlows in mule
Flows in mule
 
Unit Testing in Angular
Unit Testing in AngularUnit Testing in Angular
Unit Testing in Angular
 
Introduce anypoint studio
Introduce anypoint studioIntroduce anypoint studio
Introduce anypoint studio
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 

More from Vishnukanth Rachineni (12)

Mule connectors-session1
Mule connectors-session1Mule connectors-session1
Mule connectors-session1
 
Munit-testing-sample
Munit-testing-sampleMunit-testing-sample
Munit-testing-sample
 
Cache scope-example
Cache scope-exampleCache scope-example
Cache scope-example
 
Mulexml java
Mulexml javaMulexml java
Mulexml java
 
Mule copybook tutorial
Mule copybook tutorialMule copybook tutorial
Mule copybook tutorial
 
Mule flatfile-json example
Mule flatfile-json exampleMule flatfile-json example
Mule flatfile-json example
 
Mule copy book-tutorial
Mule copy book-tutorialMule copy book-tutorial
Mule copy book-tutorial
 
Mule XML java sample
Mule XML java sampleMule XML java sample
Mule XML java sample
 
Munit testing sample
Munit testing sampleMunit testing sample
Munit testing sample
 
Mulesoft devkit connector
Mulesoft devkit connectorMulesoft devkit connector
Mulesoft devkit connector
 
Cache scope sample
Cache scope sampleCache scope sample
Cache scope sample
 
Polling with watermark
Polling with watermarkPolling with watermark
Polling with watermark
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Mule debugging-sample

  • 1.
  • 2. This section describes how to debug your Mule application using:  Studio Visual Debugger  Troubleshooting
  • 3.  Studio’s Visual Debugger allows you to run your application in Debug mode, stopping execution to check the contents of a message at previously-specified building blocks.  To do this, you set a breakpoint at any building block in your flow that you wish to check or test (see image below). When you run your application in Debug mode, the application stops immediately after executing the building block with the breakpoint. Using the Mule Debugger View, you can browse through the contents of the message as it exists at that point in the flow, and evaluate Mule Expressions against the message.
  • 4.  Complete the following macro-steps to use the Visual Debugger in Studio. 1. Setting Breakpoints 2. Running in Debug mode 3. Viewing message data at a Breakpoint 4. Resume application execution. 5. Repeat step 3 with the next building block with a breakpoint, if any.
  • 5.  Right-click on building block, then select Toggle breakpoint.
  • 6.  In the Package Explorer pane, right-click on your application, then select Debug As> Mule Application. Studio begins running the application in Debug mode, and displays the Confirm Perspective Switch window.
  • 7.  When you begin running your application in Debug mode, Mule opens the Mule Debug perspective. Until a message arrives at the first breakpoint, the Mule Debugger View in the console displays a message that reads, "Connected with mule ESB. Waiting for a mule message to arrive!“  The image below illustrates the Mule Debug perspective.
  • 8.
  • 9.
  • 10.  This section introduces a number of techniques useful in troubleshooting Mule problems and in gathering information for technical support.  Configuring Mule Stacktraces  Debugging Outside Studio  Logging
  • 11.  By default Mule will filter out some internal class references from stack traces to produce a more readable output. This behavior can be controlled one of three ways:  Command-line arguments  Setting properties in Mule Studio  Using JMX
  • 12.  In Anypoint Studio, you can use the Studio Visual Debugger to help you troubleshoot your app. If you’re creating your Mule app outside Studio, you can resort to the following options:  When Running From Eclipse : Select the "Debug As > Mule Server" start-up mode from your configuration file. Any breakpoint you will have set in your custom code or Mule’s source code will suspend the execution and will take you to Eclipse’s Debug perspective.
  • 13.  When Running Mule Standalone : You need to start Mule with the -debug to activate remote debugging, which gives (on Linux): $MULE_HOME/bin/mule –debug  With this option, Mule will start normally but the only difference being the following message logged in the console: Listening for transport dt_socket at address: 5005
  • 14.  The less high-tech and most popular of all debugging techniques is the usage of log statements in order to follow the evolution of an application’s state. In Mule, the state you’re interested in resides in the messages that are flowing through your configuration and, possibly, custom code.  If you’re running your Mule configuration from Eclipse, the log outputs are visible right in Eclipse console window. If you’re running Mule from the command line, the logs then are visible in your OS console.