Results 1 to 3 of 3
  1. #1
    Micky is offline Member
    Join Date
    Oct 2016
    Posts
    4
    Rep Power
    0

    Question Debugging a concurrent programme

    Hi there,

    I have been posting here, hope I am not breaking the rules. But it seems a good place plus me being a noob yet, wanted to know stuff from experts. I am studying concurrent programming, and it's very hard to pinpoint error in a multithreaded programme, even with try catch statements, I am unable to know the exact statement throwing errors. I am getting a "completed abruptly" error, and tried manual debug but it was of no use.

    So wanted to add this to my knowledge, for any tips to debug a concurrent programme? any tool etc ?

    Thanks,

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: Debugging a concurrent programme

    I use print statements for most of my debugging.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Debugging a concurrent programme

    If your code is throwing exceptions are you logging them properly (that is with the stack trace)?
    That would tell you exactly where the exception is occurring.

    If it's not an exception can you post exactly what issue you are getting?

    Those aside, take Norm's advice and log (either using a logging framework or using println) what goes on in your app.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Can anyone help me in this programme..
    By praveen in forum New To Java
    Replies: 3
    Last Post: 10-13-2015, 03:33 PM
  2. Need help with first Java programme.. Very new!
    By xxdave in forum New To Java
    Replies: 3
    Last Post: 11-22-2011, 04:46 PM
  3. Help with BinarytoDecimal programme
    By Thompson in forum New To Java
    Replies: 3
    Last Post: 02-23-2011, 10:43 PM
  4. cannot compile the programme
    By Roshini in forum New To Java
    Replies: 3
    Last Post: 09-06-2010, 11:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •