Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

asked on

Debuggin inside a thread in Intellij Idea

HI,
I have the following piece of code :

 private void fireSendMessageRequested(final String messageText)
    {
        final ActiveChatsService activeChatsService = _activeChatsService;
        final ActiveChat activeChat = _activeChat;
        BackgroundTaskService.scheduleTask(new Callable<Void>()
        {
            @Override
            public Void call() throws Exception
            {
                activeChatsService.sendMessage(activeChat, messageText.trim());
                return null;
            }
        });
    }

Open in new window



I had put debug points on all the lines in Intellij IDEA.
The debugger stops at first line on its execution. Then i press step next. It jumps to next line. But when the debug point reaches the line : BackgroundTaskService.scheduleTask(new Callable<Void>()
Stepping next or pressing force into the debugger never goes inside the call() function.

What could be the reason for this. Is there any way out.

The Debugger works perfect but when there is such a Callable it never goes inside and hangs although there is a breakpoint there. Even pressing multiple times the debugger does not seems to go inside and runs as if there is no debug point.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of dpearson
dpearson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial