Its just java code, so if you do set a breakpoint inside your java code in a custom Processor then it should hit it.
Can you do a system out println in the processor and make sure it prints that. Then set a breakpoint on it, and run it in debug mode.
Yes, i did just that - did a System.out.println from within the Process, which works fine. Then I set a breakpoint on that same println and never hit it. Is this a case of the route being multithreaded and I need to do something to jump over to it somehow?
No it must be eclipse not being able to align source code when debugging.
So when you set a break point on line XXX in src file, it cannot align that. How do you start the Camel from Eclipse?
I start the route from a regular Java console application as follows. Each Processor has code that i want to step through in the debugger. When i set a breakpoint in Processor1, i never reach it and when i continue the run within the debugger, the route never seems to complete:
public static void main(String args)
CamelContext context = new DefaultCamelContext();
public void configure()
// Start the route...
// Stop the CamelContext
Well that is odd. Try setting a break point in the main method to see if it can debug there.
And make sure you compile with debug info turned on.