Deploying and Managing Apama Applications > Correlator Utilities Reference > Using the command-line debugger > Working with breakpoints using the command-line debugger > Adding breakpoints
Adding breakpoints
There are two ways to add a breakpoint. If you know the EPL file name and the line number you can enter something like the following:
engine_debug breakpoint add --file filename.mon --line 27
When you specify a file name you must specify the exact path you specified when you injected the monitor. For example, suppose you ran the following:
engine_inject foo.mon
You can then specify foo.mon for the file name. Now suppose you ran this:
engine_inject c:\foo\bar\baz.mon
You must then specify c:\foo\bar\baz.mon for the file name.
If you prefer to use the monitor and action name, along with the line number, enter something like this:
engine_debug breakpoint add --monitor package.monitor --action actionName --line 27
The debugger output indicates the line number where it added the breakpoint. In some cases, the debugger does not set the breakpoint on the line you specified. For example, when a statement runs over multiple lines.
Copyright © 2013-2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.